Skip to content
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

Add "contains" to keywords that effect "unevaluatedProperties" #1136

Conversation

jdesrosiers
Copy link
Member

Fixes #1135

This PR makes the interaction between contains and unevaluatedProperties consistent with the interaction between contains and unevaluatedItems. This was an oversight from when we changed contains to apply to objects as well as arrays.

@Relequestual
Copy link
Member

Can you file an issue in the tests repo for this change before closing please?
Also, has one been filed or tests written for #1092 ?

Copy link
Member

@Relequestual Relequestual left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@jdesrosiers
Copy link
Member Author

Can you file an issue in the tests repo for this change before closing please?

Tests have already been written and already reflect this functionality. This was just a correcting an oversight from when the spec was written. json-schema-org/JSON-Schema-Test-Suite#491

@jdesrosiers jdesrosiers merged commit 13a58c7 into json-schema-org:draft-next Oct 22, 2021
@jdesrosiers jdesrosiers deleted the contains-unevaluatedproperties branch October 22, 2021 17:02
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.

Define how contains interacts with unevaluatedProperties
2 participants