File tree 3 files changed +66
-0
lines changed
3 files changed +66
-0
lines changed Original file line number Diff line number Diff line change 1516
1516
"valid" : false
1517
1517
}
1518
1518
]
1519
+ },
1520
+ {
1521
+ "description" : " unevaluatedProperties not affected by propertyNames" ,
1522
+ "schema" : {
1523
+ "$schema" : " https://json-schema.org/draft/next/schema" ,
1524
+ "propertyNames" : {"maxLength" : 1 },
1525
+ "unevaluatedProperties" : {
1526
+ "type" : " number"
1527
+ }
1528
+ },
1529
+ "tests" : [
1530
+ {
1531
+ "description" : " allows only number properties" ,
1532
+ "data" : {"a" : 1 },
1533
+ "valid" : true
1534
+ },
1535
+ {
1536
+ "description" : " string property is invalid" ,
1537
+ "data" : {"a" : " b" },
1538
+ "valid" : false
1539
+ }
1540
+ ]
1519
1541
}
1520
1542
]
Original file line number Diff line number Diff line change 1419
1419
"valid" : true
1420
1420
}
1421
1421
]
1422
+ },
1423
+ {
1424
+ "description" : " unevaluatedProperties not affected by propertyNames" ,
1425
+ "schema" : {
1426
+ "$schema" : " https://json-schema.org/draft/2019-09/schema" ,
1427
+ "propertyNames" : {"maxLength" : 1 },
1428
+ "unevaluatedProperties" : {
1429
+ "type" : " number"
1430
+ }
1431
+ },
1432
+ "tests" : [
1433
+ {
1434
+ "description" : " allows only number properties" ,
1435
+ "data" : {"a" : 1 },
1436
+ "valid" : true
1437
+ },
1438
+ {
1439
+ "description" : " string property is invalid" ,
1440
+ "data" : {"a" : " b" },
1441
+ "valid" : false
1442
+ }
1443
+ ]
1422
1444
}
1423
1445
]
Original file line number Diff line number Diff line change 1419
1419
"valid" : true
1420
1420
}
1421
1421
]
1422
+ },
1423
+ {
1424
+ "description" : " unevaluatedProperties not affected by propertyNames" ,
1425
+ "schema" : {
1426
+ "$schema" : " https://json-schema.org/draft/2020-12/schema" ,
1427
+ "propertyNames" : {"maxLength" : 1 },
1428
+ "unevaluatedProperties" : {
1429
+ "type" : " number"
1430
+ }
1431
+ },
1432
+ "tests" : [
1433
+ {
1434
+ "description" : " allows only number properties" ,
1435
+ "data" : {"a" : 1 },
1436
+ "valid" : true
1437
+ },
1438
+ {
1439
+ "description" : " string property is invalid" ,
1440
+ "data" : {"a" : " b" },
1441
+ "valid" : false
1442
+ }
1443
+ ]
1422
1444
}
1423
1445
]
You can’t perform that action at this time.
0 commit comments