Skip to content

feat: don't quote rejected values by default #736

Closed

Description

@uniqueg

Change

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

  1. added this to the v0.22.0 milestone on Nov 7, 2026
  2. added
    priority: medium
    status: in progress
    type flag: breaking change
    type: security
    workload: hours
    on Nov 7, 2026
  3. removed
    status: in progress
    on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: mediumtype flag: breaking changetype: securityworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions