Skip to content

Support for const property validation #472

@perher

Description

@perher

Today all const fields in the schema are ignored. This information should instead of be used to validate properties have the expected values:

Example schema:

{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "const": "foo"
    },
    "value": {
      "type": "number",
      "const": 42
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions