We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unevaluatedProperties is a bit like additionalProperties but it checks against all subSchemas and adjacent schemas.
unevaluatedProperties
additionalProperties
i.e.
allOf: - properties: - foo - bar additionalProperties: false - properties: - baz required: - baz
The above will always fail because the second schema requires baz, but the first schema would consider baz to be an additionalProperty.
allOf: - properties: - foo - bar unevaluatedProperties: false - properties: - baz required: - baz
The above is able to pass, because the second schema evaluates baz.
See the following for more information: https://json-schema.org/understanding-json-schema/reference/object.html#unevaluated-properties
json-schema-org/json-schema-spec#556
The text was updated successfully, but these errors were encountered:
No branches or pull requests
unevaluatedProperties
is a bit likeadditionalProperties
but it checks against all subSchemas and adjacent schemas.i.e.
The above will always fail because the second schema requires baz, but the first schema would consider baz to be an additionalProperty.
The above is able to pass, because the second schema evaluates baz.
See the following for more information:
https://json-schema.org/understanding-json-schema/reference/object.html#unevaluated-properties
json-schema-org/json-schema-spec#556
The text was updated successfully, but these errors were encountered: