Title: Schema if_key_missing default values · Issue #77 · formencode/formencode · GitHub
Open Graph Title: Schema if_key_missing default values · Issue #77 · formencode/formencode
X Title: Schema if_key_missing default values · Issue #77 · formencode/formencode
Description: In the standard schema the value for if_key_missing defaults to NoDefault. This overrides the if_missing setting for the included validators. So when a validator has an if_missing setting, this will not be evaluated, as the schema will r...
Open Graph Description: In the standard schema the value for if_key_missing defaults to NoDefault. This overrides the if_missing setting for the included validators. So when a validator has an if_missing setting, this wil...
X Description: In the standard schema the value for if_key_missing defaults to NoDefault. This overrides the if_missing setting for the included validators. So when a validator has an if_missing setting, this wil...
Opengraph URL: https://github.com/formencode/formencode/issues/77
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Schema if_key_missing default values","articleBody":"In the standard schema the value for `if_key_missing` defaults to `NoDefault`. This overrides the `if_missing` setting for the included validators. So when a validator has an `if_missing` setting, this will not be evaluated, as the schema will raise an `Invalid` exception before.\n\nThis behaviour is not documented and the comment to the `if_key_missing` value in the code suggests that it is also not intended. (schema.py line 52)\n\nI suggest changing the default behaviour for `if_key_missing` in a way that the `if_missing` value of the validator can be evaluated. On the other hand, if this behaviour is intended we could document it and save other people the effort of looking it up in the code.\n","author":{"url":"https://github.com/GevatterGaul","@type":"Person","name":"GevatterGaul"},"datePublished":"2015-02-08T22:00:40Z","url":"https://github.com/formencode/formencode/issues/77"}
| 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:6bf9aa4d-ff86-4839-a83a-42e0c6bb21f9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AEE4:2009FB:2891A2:394BC3:6B0469D4 |
| html-safe-nonce | 830299771f0cfc0cb9530ddc5903f0ae6398353514b27bc4a5b5bed943d075fb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRUU0OjIwMDlGQjoyODkxQTI6Mzk0QkMzOjZCMDQ2OUQ0IiwidmlzaXRvcl9pZCI6IjI0ODY4NzQ5ODA1OTI0MTMxNDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 402af0143d7867fd8f30dc4476ece83bf1db96b4c686d06445110cb6e6607b5a |
| hovercard-subject-tag | issue:56969863 |
| 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/formencode/formencode/77/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f9be2a74a1c203f47dd7f290c44d68cc4af296ceed5ddd50ba9ae904b8589ff5/formencode/formencode/issues/77 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f9be2a74a1c203f47dd7f290c44d68cc4af296ceed5ddd50ba9ae904b8589ff5/formencode/formencode/issues/77 |
| og:image:alt | In the standard schema the value for if_key_missing defaults to NoDefault. This overrides the if_missing setting for the included validators. So when a validator has an if_missing setting, this wil... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | GevatterGaul |
| hostname | github.com |
| expected-hostname | github.com |
| None | 83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f |
| turbo-cache-control | no-preview |
| go-import | github.com/formencode/formencode git https://github.com/formencode/formencode.git |
| octolytics-dimension-user_id | 1541742 |
| octolytics-dimension-user_login | formencode |
| octolytics-dimension-repository_id | 3733133 |
| octolytics-dimension-repository_nwo | formencode/formencode |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3733133 |
| octolytics-dimension-repository_network_root_nwo | formencode/formencode |
| 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 | ca4d07a7cef4e4b75f821dc25e7300d80c1450a9 |
| 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