JSON-Schema-Test-Suite icon indicating copy to clipboard operation
JSON-Schema-Test-Suite copied to clipboard

Add tests for unevaluatedItems with minContains = 0

Open JDepooter opened this issue 8 months ago • 0 comments
trafficstars

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.

JDepooter avatar Mar 18 '25 06:03 JDepooter