Skip to content

support "stringy booleans", for some types of data only #83

@karenetheridge

Description

@karenetheridge

For some payloads, e.g. query parameters that are exploded into an object from a string, a value might convey a boolean value but was represented as a string. Provide an option to allow strings that match true or false to be validated as a boolean value:

When this configuration is enabled (default false),

data "false" and "true" will validate successfully against

  • "type": "boolean"
  • "type": ["boolean", ..]
  • "const": true or "const": false
  • "enum": [true, false]

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions