3 "description": "dependencies",
5 "dependencies": {"bar": ["foo"]}
9 "description": "neither",
14 "description": "nondependant",
19 "description": "with dependency",
20 "data": {"foo": 1, "bar": 2},
24 "description": "missing dependency",
29 "description": "ignores non-objects",
36 "description": "multiple dependencies",
38 "dependencies": {"quux": ["foo", "bar"]}
42 "description": "neither",
47 "description": "nondependants",
48 "data": {"foo": 1, "bar": 2},
52 "description": "with dependencies",
53 "data": {"foo": 1, "bar": 2, "quux": 3},
57 "description": "missing dependency",
58 "data": {"foo": 1, "quux": 2},
62 "description": "missing other dependency",
63 "data": {"bar": 1, "quux": 2},
67 "description": "missing both dependencies",
74 "description": "multiple dependencies subschema",
79 "foo": {"type": "integer"},
80 "bar": {"type": "integer"}
87 "description": "valid",
88 "data": {"foo": 1, "bar": 2},
92 "description": "no dependency",
93 "data": {"foo": "quux"},
97 "description": "wrong type",
98 "data": {"foo": "quux", "bar": 2},
102 "description": "wrong type other",
103 "data": {"foo": 2, "bar": "quux"},
107 "description": "wrong type both",
108 "data": {"foo": "quux", "bar": "quux"},