JSON-Schema-Test-Suite
JSON-Schema-Test-Suite copied to clipboard
"unevaluatedItems", "additionalItems", and tuple "items"
unevaluatedItems should apply to instance items past the end of the items tuple the same way as additionalItems, except that it works with items across a reference or allOf or whatever.
If additionalItems is present with items, then (because that subschema will only pass if both items and additionalItems pass), unevaluatedItems is always ignored. additionalItems consumes the whole remainder of the array.
- [x] test
unevaluatedItemswith tupleitemsonly, same-object: here - [x] test
unevaluatedItemswith tupleitemsonly, through applicator: here - [x] test
unevaluatedItemswith tupleitemsandadditionalItems, same object: here - [x] test
unevaluatedItemswith tupleitemsandadditionalItems, through applicator: here - [ ] test
unevaluatedItemsignoresadditionalItemswithoutitems, same object - [ ] test
unevaluatedItemsignoresadditionalItemswithoutitems, through applicator
Note that putting items and additionalItems in separate applicator subschemas is identical to just having items, as a lone additionalItems always has no effect.