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
Consider the following schema:
{ "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "V": { "type": "array", "items": { "oneOf": [ { "type": "object", "properties": { "X": { "type": "string" } }, "required": [ "X" ], "additionalProperties": false }, { "type": "object", "properties": { "A": { "type": "string" }, "B": { "type": "string" }, "C": { "type": "string" } }, "anyOf": [ { "properties": { "origin": { "const": "not-present" } }, "required": [ "A", "C" ] }, { "properties": { "origin": { "const": "not-present-either" } }, "required": [ "A", "B" ] } ], "additionalProperties": false, "required": [ "A" ], "not": { "type": "object", "required": [ "X" ] } } ] } } } }
This should match the following object:
{ "V": [ { "A": "foo", "B": "bar" } ] }
but it doesn't. The problem seems to be that the AnyOfValidator doesn't set the setMatchedNode/hasMatchedNode properties correctly.
The text was updated successfully, but these errors were encountered:
See PR #607
Sorry, something went wrong.
@stevehu now that this can be closed, would it be possible to make a release? This would make it easier for us to integrate the fix downstream.
I will have a release this weekend. Thanks.
No branches or pull requests
Consider the following schema:
This should match the following object:
but it doesn't. The problem seems to be that the AnyOfValidator doesn't set the setMatchedNode/hasMatchedNode properties correctly.
The text was updated successfully, but these errors were encountered: