File tree Expand file tree Collapse file tree 3 files changed +66
-0
lines changed Expand file tree Collapse file tree 3 files changed +66
-0
lines changed Original file line number Diff line number Diff line change 15161516 "valid" : false
15171517 }
15181518 ]
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+ ]
15191541 }
15201542]
Original file line number Diff line number Diff line change 14191419 "valid" : true
14201420 }
14211421 ]
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+ ]
14221444 }
14231445]
Original file line number Diff line number Diff line change 14191419 "valid" : true
14201420 }
14211421 ]
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+ ]
14221444 }
14231445]
You can’t perform that action at this time.
0 commit comments