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 tests for unevaluatedItems with minContains = 0 #765

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JDepooter
Copy link

It is tempting to forgo evaluation of the 'contains' schema when minContains = 0. However, when an unevaluatedItems schema is present, the contains schema must still be evaluated as it will affect the results of the unevaluatedItems schema.

It is my understanding that the interaction between contains and unevaluatedItems is not defined prior to the draft2020-12 specification, so I have not added the test for any earlier versions.

It is tempting to forgo evaluation of the 'contains' schema when `minContains = 0`. However, when an `unevaluatedItems` schema is present, the `contains` schema must still be evaluated as it will affect the results of the `unevaluatedItems` schema.
@JDepooter JDepooter requested a review from a team as a code owner March 18, 2025 06:45
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.

2 participants