Title: A whole-number float in an integer field passes config validate, then crashes the command that reads it · Issue #602 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: A whole-number float in an integer field passes config validate, then crashes the command that reads it · Issue #602 · cloudfall-dev/cloudfall
X Title: A whole-number float in an integer field passes config validate, then crashes the command that reads it · Issue #602 · cloudfall-dev/cloudfall
Description: Problem A whole-number float in an integer field of a declaration passes cloudfall config validate and then crashes the command that reads it. JSON Schema's "type": "integer" accepts 8100.0 (draft 2020-12 counts a number with a zero frac...
Open Graph Description: Problem A whole-number float in an integer field of a declaration passes cloudfall config validate and then crashes the command that reads it. JSON Schema's "type": "integer" accepts 8100.0 (draft ...
X Description: Problem A whole-number float in an integer field of a declaration passes cloudfall config validate and then crashes the command that reads it. JSON Schema's "type": "integer"...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/issues/602
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"A whole-number float in an integer field passes config validate, then crashes the command that reads it","articleBody":"## Problem\n\nA whole-number float in an integer field of a declaration passes `cloudfall config validate` and then crashes the command that reads it.\n\nJSON Schema's `\"type\": \"integer\"` accepts `8100.0` (draft 2020-12 counts a number with a zero fractional part as an integer), so the schema lets it through, while the value objects behind the fields (`TcpPort.from_boundary`, `RequestBodyMegabytes.from_boundary` and the others built on `_required_bounded_integer` in `sdk/src/cloudfall/domain.py`) refuse anything that isn't a Python `int` with a `TypeError`.\n\n## Reproduce\n\nOn main at 8659e4b, in a copy of `config/examples`, set the Domain's `spec.proxy.upstream.port` to `8100.0`:\n\n- `cloudfall config validate --project \u003ccopy>` reports ok\n- `cloudfall domains apply` on the same project fails with `HANDLER_CRASHED` (`TypeError`) instead of a validation error\n\nThe same holds for `spec.proxy.maxRequestBodyMegabytes: 55.0` once #601 lands; it was found reviewing that PR.\n\n## Expected\n\n`config validate` refuses a float in an integer field with the field's path, as it refuses `\"55m\"`, so no command gets as far as the value object. Either the validator rejects floats for `integer` (a format checker or a custom type checker on the validator), or validation runs the value objects and reports their refusal as a validation error. Q-1: a config that validates must not crash a later command.\n\nTouches: the schema validator in `sdk/src/cloudfall/validation.py`, the integer value objects in `sdk/src/cloudfall/domain.py`.\n\n\u003c!-- shipmill:agent -->\n","author":{"url":"https://github.com/apps/shipmill-romamo","@type":"Person","name":"shipmill-romamo"},"datePublished":"2026-11-23T19:13:00Z","url":"https://github.com/cloudfall-dev/cloudfall/issues/602"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7f2ce327-7410-fe0c-cc7f-c6f3fff4c06d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C6EA:2EA7B6:23A1FFD:2EEB0D9:6B054EC7 |
| html-safe-nonce | 2cd2a6b4ba0ddf9aa285ebb96496093e7498675e2d1dc04884aceb154d909d01 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNkVBOjJFQTdCNjoyM0ExRkZEOjJFRUIwRDk6NkIwNTRFQzciLCJ2aXNpdG9yX2lkIjoiMzQ3MDk4MDAyNTM3NjEzMjgwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0e8c25406890a46417b314aa564209edcb5e92df119e8642bf23f4546c82ce43 |
| hovercard-subject-tag | issue:6566868520 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cloudfall-dev/cloudfall/602/issue_layout |
| twitter:image | https://opengraph.githubassets.com/37fe2622b93ae7935c531eac9699fb8fe2f69e27f7649f1137fe508bf70a1cee/cloudfall-dev/cloudfall/issues/602 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/37fe2622b93ae7935c531eac9699fb8fe2f69e27f7649f1137fe508bf70a1cee/cloudfall-dev/cloudfall/issues/602 |
| og:image:alt | Problem A whole-number float in an integer field of a declaration passes cloudfall config validate and then crashes the command that reads it. JSON Schema's "type": "integer" accepts 8100.0 (draft ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | shipmill-romamo[bot] |
| hostname | github.com |
| expected-hostname | github.com |
| None | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| turbo-cache-control | no-preview |
| go-import | github.com/cloudfall-dev/cloudfall git https://github.com/cloudfall-dev/cloudfall.git |
| octolytics-dimension-user_id | 339512759 |
| octolytics-dimension-user_login | cloudfall-dev |
| octolytics-dimension-repository_id | 1360999777 |
| octolytics-dimension-repository_nwo | cloudfall-dev/cloudfall |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1360999777 |
| octolytics-dimension-repository_network_root_nwo | cloudfall-dev/cloudfall |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width