You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Switch the default of exceptions.validation_reasons (added in #733, not released yet) to false in 0.22.0.
With the default true, responses to requests rejected by Connexion's validation quote the validator's reason in detail, which may include rejected values of the request (and, for parameters, parts of the schema). With false, detail names the invalid fields by location and code, e.g., Invalid fields: #/name (too-long), and the fields stay listed in errors. Safe by default is the better choice; apps whose clients depend on the reasons can set validation_reasons: true.
Scope
Default of ExceptionConfig.validation_reasons to false, test-first.
Docs: exceptions configuration, the migration guide to 0.22 (behaviour change: detail of invalid requests), release notes of 0.22.0 under Security, and templates/config.yaml.
Downstream (proTES, cloud-registry): tests that assert the old messages need updating when they move to FOCA 0.22.0; they are listed in the PR, not changed there.
Activity