JSON-Schema-Test-Suite
JSON-Schema-Test-Suite copied to clipboard
Add tests for unevaluatedItems with minContains = 0
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.