-
-
Notifications
You must be signed in to change notification settings - Fork 259
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
Define how contains interacts with unevaluatedProperties #1135
Comments
That brings in an inconsistency between Does it ever make sense to have I wonder if we should re-evaluate the interaction of these keywords at the same time as the consideration of how |
@karenetheridge I was so confused by your comment and I think I just figured out why. I used |
Yes, much better :D :D :D |
We recently (#1092) added support for
contains
to apply to objects, but we neglected to define howcontains
interacts withunevaluatedProperties
. It should be consistent with howunevaluatedItems
works.Example
Given this schema and instance, we should expect properties "a" and "b" to be "evaluated" and "c" to be unevaluated. "c" should be validated against the
unevaluatedProperties
schema and fail because it's not a boolean. However, currentlyunevaluatedProperties
is only defined in terms ofproperties
,patternProperties
,additionalProperties
, and itself, socontains
doesn't create the relevant annotations and all of the properties will be considered unevaluated.I'll create a PR soon to bring this in sync with the
unevaluatedItems
behavior.The text was updated successfully, but these errors were encountered: