File tree Expand file tree Collapse file tree 6 files changed +182
-22
lines changed Expand file tree Collapse file tree 6 files changed +182
-22
lines changed Original file line number Diff line number Diff line change 593593 "valid" : false
594594 }
595595 ]
596+ },
597+ {
598+ "description" : " non-array instances are valid" ,
599+ "schema" : {"unevaluatedItems" : false },
600+ "tests" : [
601+ {
602+ "description" : " ignores booleans" ,
603+ "data" : true ,
604+ "valid" : true
605+ },
606+ {
607+ "description" : " ignores integers" ,
608+ "data" : 123 ,
609+ "valid" : true
610+ },
611+ {
612+ "description" : " ignores floats" ,
613+ "data" : 1.0 ,
614+ "valid" : true
615+ },
616+ {
617+ "description" : " ignores objects" ,
618+ "data" : {},
619+ "valid" : true
620+ },
621+ {
622+ "description" : " ignores strings" ,
623+ "data" : " foo" ,
624+ "valid" : true
625+ },
626+ {
627+ "description" : " ignores null" ,
628+ "data" : null ,
629+ "valid" : true
630+ }
631+ ]
596632 }
597633]
Original file line number Diff line number Diff line change 13561356 "valid" : false
13571357 }
13581358 ]
1359+ },
1360+ {
1361+ "description" : " non-object instances are valid" ,
1362+ "schema" : {"unevaluatedProperties" : false },
1363+ "tests" : [
1364+ {
1365+ "description" : " ignores booleans" ,
1366+ "data" : true ,
1367+ "valid" : true
1368+ },
1369+ {
1370+ "description" : " ignores integers" ,
1371+ "data" : 123 ,
1372+ "valid" : true
1373+ },
1374+ {
1375+ "description" : " ignores floats" ,
1376+ "data" : 1.0 ,
1377+ "valid" : true
1378+ },
1379+ {
1380+ "description" : " ignores arrays" ,
1381+ "data" : [],
1382+ "valid" : true
1383+ },
1384+ {
1385+ "description" : " ignores strings" ,
1386+ "data" : " foo" ,
1387+ "valid" : true
1388+ },
1389+ {
1390+ "description" : " ignores null" ,
1391+ "data" : null ,
1392+ "valid" : true
1393+ }
1394+ ]
13591395 }
13601396]
Original file line number Diff line number Diff line change 485485 "valid" : false
486486 }
487487 ]
488+ },
489+ {
490+ "description" : " non-array instances are valid" ,
491+ "schema" : {"unevaluatedItems" : false },
492+ "tests" : [
493+ {
494+ "description" : " ignores booleans" ,
495+ "data" : true ,
496+ "valid" : true
497+ },
498+ {
499+ "description" : " ignores integers" ,
500+ "data" : 123 ,
501+ "valid" : true
502+ },
503+ {
504+ "description" : " ignores floats" ,
505+ "data" : 1.0 ,
506+ "valid" : true
507+ },
508+ {
509+ "description" : " ignores objects" ,
510+ "data" : {},
511+ "valid" : true
512+ },
513+ {
514+ "description" : " ignores strings" ,
515+ "data" : " foo" ,
516+ "valid" : true
517+ },
518+ {
519+ "description" : " ignores null" ,
520+ "data" : null ,
521+ "valid" : true
522+ }
523+ ]
488524 }
489525]
Original file line number Diff line number Diff line change 13071307 "valid" : false
13081308 }
13091309 ]
1310+ },
1311+ {
1312+ "description" : " non-object instances are valid" ,
1313+ "schema" : {"unevaluatedProperties" : false },
1314+ "tests" : [
1315+ {
1316+ "description" : " ignores booleans" ,
1317+ "data" : true ,
1318+ "valid" : true
1319+ },
1320+ {
1321+ "description" : " ignores integers" ,
1322+ "data" : 123 ,
1323+ "valid" : true
1324+ },
1325+ {
1326+ "description" : " ignores floats" ,
1327+ "data" : 1.0 ,
1328+ "valid" : true
1329+ },
1330+ {
1331+ "description" : " ignores arrays" ,
1332+ "data" : [],
1333+ "valid" : true
1334+ },
1335+ {
1336+ "description" : " ignores strings" ,
1337+ "data" : " foo" ,
1338+ "valid" : true
1339+ },
1340+ {
1341+ "description" : " ignores null" ,
1342+ "data" : null ,
1343+ "valid" : true
1344+ }
1345+ ]
13101346 }
13111347]
Original file line number Diff line number Diff line change 595595 ]
596596 },
597597 {
598- "description" : " unevaluatedItems on non-applicable type" ,
599- "schema" : {
600- "unevaluatedItems" : false
601- },
598+ "description" : " non-array instances are valid" ,
599+ "schema" : {"unevaluatedItems" : false },
602600 "tests" : [
603601 {
604- "description" : " null is not applicable " ,
605- "data" : null ,
602+ "description" : " ignores booleans " ,
603+ "data" : true ,
606604 "valid" : true
607605 },
608606 {
609- "description" : " number is not applicable " ,
610- "data" : 42 ,
607+ "description" : " ignores integers " ,
608+ "data" : 123 ,
611609 "valid" : true
612610 },
613611 {
614- "description" : " string is not applicable " ,
615- "data" : " foo " ,
612+ "description" : " ignores floats " ,
613+ "data" : 1.0 ,
616614 "valid" : true
617615 },
618616 {
619- "description" : " object is not applicable " ,
617+ "description" : " ignores objects " ,
620618 "data" : {},
621619 "valid" : true
620+ },
621+ {
622+ "description" : " ignores strings" ,
623+ "data" : " foo" ,
624+ "valid" : true
625+ },
626+ {
627+ "description" : " ignores null" ,
628+ "data" : null ,
629+ "valid" : true
622630 }
623631 ]
624632 }
Original file line number Diff line number Diff line change 13091309 ]
13101310 },
13111311 {
1312- "description" : " unevaluatedProperties on non-applicable type" ,
1313- "schema" : {
1314- "unevaluatedProperties" : false
1315- },
1312+ "description" : " non-object instances are valid" ,
1313+ "schema" : {"unevaluatedProperties" : false },
13161314 "tests" : [
13171315 {
1318- "description" : " null is not applicable " ,
1319- "data" : null ,
1316+ "description" : " ignores booleans " ,
1317+ "data" : true ,
13201318 "valid" : true
13211319 },
13221320 {
1323- "description" : " number is not applicable " ,
1324- "data" : 42 ,
1321+ "description" : " ignores integers " ,
1322+ "data" : 123 ,
13251323 "valid" : true
13261324 },
13271325 {
1328- "description" : " string is not applicable " ,
1329- "data" : " foo " ,
1326+ "description" : " ignores floats " ,
1327+ "data" : 1.0 ,
13301328 "valid" : true
13311329 },
13321330 {
1333- "description" : " array is not applicable " ,
1331+ "description" : " ignores arrays " ,
13341332 "data" : [],
13351333 "valid" : true
1334+ },
1335+ {
1336+ "description" : " ignores strings" ,
1337+ "data" : " foo" ,
1338+ "valid" : true
1339+ },
1340+ {
1341+ "description" : " ignores null" ,
1342+ "data" : null ,
1343+ "valid" : true
13361344 }
13371345 ]
13381346 }
You can’t perform that action at this time.
0 commit comments