-
-
Notifications
You must be signed in to change notification settings - Fork 217
"unevaluatedItems" and single-schema "items" #291
New issue
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
Comments
In the above example, wouldn't Would it therefore be correct to have the test schema second Nevermind, I think I GET it now. It's checking the annotation result is actually what matters, because |
This is interesting in the first and third test cases because although For the second case, |
@Relequestual encouraged me to create some debug logging to show how my implementation was making its decisions. I quickly worked something up for this example (since it only has four keywords to update). Here are the results:
|
These tests may be impacted by json-schema-org/json-schema-spec#810 |
1 similar comment
These tests may be impacted by json-schema-org/json-schema-spec#810 |
Add tests for Single-schema items and unevaluatedItems
unevaluatedItems
should apply if there is a single-schemaitems
which fails to apply. Conversely,unevaluatedItems
should be ignored if a single-schemaitems
applies successfully.Given the following:
[true, false]
should pass["yes", "no"]
should pass["yes", false]
should failThe text was updated successfully, but these errors were encountered: