We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53858ff commit 5a888a6Copy full SHA for 5a888a6
tests/draft6/dependencies.json
@@ -127,5 +127,36 @@
127
"valid": false
128
}
129
]
130
+ },
131
+ {
132
+ "description": "dependencies with boolean subschemas",
133
+ "schema": {
134
+ "dependencies": {
135
+ "foo": true,
136
+ "bar": false
137
+ }
138
139
+ "tests": [
140
141
+ "description": "object with property having schema true is valid",
142
+ "data": {"foo": 1},
143
+ "valid": true
144
145
146
+ "description": "object with property having schema false is invalid",
147
+ "data": {"bar": 2},
148
+ "valid": false
149
150
151
+ "description": "object with both properties is invalid",
152
+ "data": {"foo": 1, "bar": 2},
153
154
155
156
+ "description": "empty object is valid",
157
+ "data": {},
158
159
160
+ ]
161
162
0 commit comments