File tree Expand file tree Collapse file tree 2 files changed +52
-0
lines changed Expand file tree Collapse file tree 2 files changed +52
-0
lines changed Original file line number Diff line number Diff line change 214214 "valid" : false
215215 }
216216 ]
217+ },
218+ {
219+ "description" : " nested allOf, to check validation semantics" ,
220+ "schema" : {
221+ "allOf" : [
222+ {
223+ "allOf" : [
224+ {
225+ "type" : " null"
226+ }
227+ ]
228+ }
229+ ]
230+ },
231+ "tests" : [
232+ {
233+ "description" : " null is valid" ,
234+ "data" : null ,
235+ "valid" : true
236+ },
237+ {
238+ "description" : " anything non-null is invalid" ,
239+ "data" : 123 ,
240+ "valid" : false
241+ }
242+ ]
217243 }
218244]
Original file line number Diff line number Diff line change 244244 "valid" : false
245245 }
246246 ]
247+ },
248+ {
249+ "description" : " nested oneOf, to check validation semantics" ,
250+ "schema" : {
251+ "oneOf" : [
252+ {
253+ "oneOf" : [
254+ {
255+ "type" : " null"
256+ }
257+ ]
258+ }
259+ ]
260+ },
261+ "tests" : [
262+ {
263+ "description" : " null is valid" ,
264+ "data" : null ,
265+ "valid" : true
266+ },
267+ {
268+ "description" : " anything non-null is invalid" ,
269+ "data" : 123 ,
270+ "valid" : false
271+ }
272+ ]
247273 }
248274]
You can’t perform that action at this time.
0 commit comments