Skip to content

Conversation

@XenosEleatikos
Copy link

This PR adds support for the 'const' keyword from JSON Schema Draft 6+. The const keyword allows specifying that a value must be exactly equal to a specific constant value.

Additionally, fixed nullableByType() to support type: "null" as string.
This ensures that schemas with type: "null" correctly allow null values,
which is required for const: null validation to work properly.

This PR adds support for the 'const' keyword from JSON Schema Draft 6+.
The const keyword allows specifying that a value must be exactly equal
to a specific constant value.

Additionally, fixed nullableByType() to support type: "null" as string.
This ensures that schemas with type: "null" correctly allow null values,
which is required for const: null validation to work properly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant