3 "description": "object properties validation",
6 "foo": {"type": "integer"},
7 "bar": {"type": "string"}
12 "description": "both properties present and valid is valid",
13 "data": {"foo": 1, "bar": "baz"},
17 "description": "one property invalid is invalid",
18 "data": {"foo": 1, "bar": {}},
22 "description": "both properties invalid is invalid",
23 "data": {"foo": [], "bar": {}},
27 "description": "doesn't invalidate other properties",
32 "description": "ignores non-objects",
40 "properties, patternProperties, additionalProperties interaction",
43 "foo": {"type": "array", "maxItems": 3},
44 "bar": {"type": "array"}
46 "patternProperties": {"f.o": {"minItems": 2}},
47 "additionalProperties": {"type": "integer"}
51 "description": "property validates property",
52 "data": {"foo": [1, 2]},
56 "description": "property invalidates property",
57 "data": {"foo": [1, 2, 3, 4]},
61 "description": "patternProperty invalidates property",
66 "description": "patternProperty validates nonproperty",
67 "data": {"fxo": [1, 2]},
71 "description": "patternProperty invalidates nonproperty",
76 "description": "additionalProperty ignores property",
81 "description": "additionalProperty validates others",
86 "description": "additionalProperty invalidates others",
87 "data": {"quux": "foo"},