3 "description": "additionalItems as schema",
6 "additionalItems": {"type": "integer"}
10 "description": "additional items match schema",
11 "data": [ null, 2, 3, 4 ],
15 "description": "additional items do not match schema",
16 "data": [ null, 2, 3, "foo" ],
22 "description": "items is schema, no additionalItems",
25 "additionalItems": false
29 "description": "all items match schema",
30 "data": [ 1, 2, 3, 4, 5 ],
36 "description": "array of items with no additionalItems",
38 "items": [{}, {}, {}],
39 "additionalItems": false
43 "description": "no additional items present",
48 "description": "additional items are not permitted",
49 "data": [ 1, 2, 3, 4 ],
55 "description": "additionalItems as false without items",
56 "schema": {"additionalItems": false},
60 "items defaults to empty schema so everything is valid",
61 "data": [ 1, 2, 3, 4, 5 ],
65 "description": "ignores non-arrays",
66 "data": {"foo" : "bar"},
72 "description": "additionalItems are allowed by default",
73 "schema": {"items": [{"type": "integer"}]},
76 "description": "only the first item is validated",
77 "data": [1, "foo", false],