File tree 6 files changed +182
-22
lines changed
6 files changed +182
-22
lines changed Original file line number Diff line number Diff line change 593
593
"valid" : false
594
594
}
595
595
]
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
+ ]
596
632
}
597
633
]
Original file line number Diff line number Diff line change 1356
1356
"valid" : false
1357
1357
}
1358
1358
]
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
+ ]
1359
1395
}
1360
1396
]
Original file line number Diff line number Diff line change 485
485
"valid" : false
486
486
}
487
487
]
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
+ ]
488
524
}
489
525
]
Original file line number Diff line number Diff line change 1307
1307
"valid" : false
1308
1308
}
1309
1309
]
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
+ ]
1310
1346
}
1311
1347
]
Original file line number Diff line number Diff line change 595
595
]
596
596
},
597
597
{
598
- "description" : " unevaluatedItems on non-applicable type" ,
599
- "schema" : {
600
- "unevaluatedItems" : false
601
- },
598
+ "description" : " non-array instances are valid" ,
599
+ "schema" : {"unevaluatedItems" : false },
602
600
"tests" : [
603
601
{
604
- "description" : " null is not applicable " ,
605
- "data" : null ,
602
+ "description" : " ignores booleans " ,
603
+ "data" : true ,
606
604
"valid" : true
607
605
},
608
606
{
609
- "description" : " number is not applicable " ,
610
- "data" : 42 ,
607
+ "description" : " ignores integers " ,
608
+ "data" : 123 ,
611
609
"valid" : true
612
610
},
613
611
{
614
- "description" : " string is not applicable " ,
615
- "data" : " foo " ,
612
+ "description" : " ignores floats " ,
613
+ "data" : 1.0 ,
616
614
"valid" : true
617
615
},
618
616
{
619
- "description" : " object is not applicable " ,
617
+ "description" : " ignores objects " ,
620
618
"data" : {},
621
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
622
630
}
623
631
]
624
632
}
Original file line number Diff line number Diff line change 1309
1309
]
1310
1310
},
1311
1311
{
1312
- "description" : " unevaluatedProperties on non-applicable type" ,
1313
- "schema" : {
1314
- "unevaluatedProperties" : false
1315
- },
1312
+ "description" : " non-object instances are valid" ,
1313
+ "schema" : {"unevaluatedProperties" : false },
1316
1314
"tests" : [
1317
1315
{
1318
- "description" : " null is not applicable " ,
1319
- "data" : null ,
1316
+ "description" : " ignores booleans " ,
1317
+ "data" : true ,
1320
1318
"valid" : true
1321
1319
},
1322
1320
{
1323
- "description" : " number is not applicable " ,
1324
- "data" : 42 ,
1321
+ "description" : " ignores integers " ,
1322
+ "data" : 123 ,
1325
1323
"valid" : true
1326
1324
},
1327
1325
{
1328
- "description" : " string is not applicable " ,
1329
- "data" : " foo " ,
1326
+ "description" : " ignores floats " ,
1327
+ "data" : 1.0 ,
1330
1328
"valid" : true
1331
1329
},
1332
1330
{
1333
- "description" : " array is not applicable " ,
1331
+ "description" : " ignores arrays " ,
1334
1332
"data" : [],
1335
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
1336
1344
}
1337
1345
]
1338
1346
}
You can’t perform that action at this time.
0 commit comments