File tree 3 files changed +87
-0
lines changed
3 files changed +87
-0
lines changed Original file line number Diff line number Diff line change 43
43
}
44
44
]
45
45
},
46
+ {
47
+ "description" : " propertyNames validation with pattern" ,
48
+ "schema" : {
49
+ "propertyNames" : { "pattern" : " ^a+$" }
50
+ },
51
+ "tests" : [
52
+ {
53
+ "description" : " matching property names valid" ,
54
+ "data" : {
55
+ "a" : {},
56
+ "aa" : {},
57
+ "aaa" : {}
58
+ },
59
+ "valid" : true
60
+ },
61
+ {
62
+ "description" : " non-matching property name is invalid" ,
63
+ "data" : {
64
+ "aaA" : {}
65
+ },
66
+ "valid" : false
67
+ },
68
+ {
69
+ "description" : " object without properties is valid" ,
70
+ "data" : {},
71
+ "valid" : true
72
+ }
73
+ ]
74
+ },
46
75
{
47
76
"description" : " propertyNames with boolean schema true" ,
48
77
"schema" : {"propertyNames" : true },
Original file line number Diff line number Diff line change 43
43
}
44
44
]
45
45
},
46
+ {
47
+ "description" : " propertyNames validation with pattern" ,
48
+ "schema" : {
49
+ "propertyNames" : { "pattern" : " ^a+$" }
50
+ },
51
+ "tests" : [
52
+ {
53
+ "description" : " matching property names valid" ,
54
+ "data" : {
55
+ "a" : {},
56
+ "aa" : {},
57
+ "aaa" : {}
58
+ },
59
+ "valid" : true
60
+ },
61
+ {
62
+ "description" : " non-matching property name is invalid" ,
63
+ "data" : {
64
+ "aaA" : {}
65
+ },
66
+ "valid" : false
67
+ },
68
+ {
69
+ "description" : " object without properties is valid" ,
70
+ "data" : {},
71
+ "valid" : true
72
+ }
73
+ ]
74
+ },
46
75
{
47
76
"description" : " propertyNames with boolean schema true" ,
48
77
"schema" : {"propertyNames" : true },
Original file line number Diff line number Diff line change 43
43
}
44
44
]
45
45
},
46
+ {
47
+ "description" : " propertyNames validation with pattern" ,
48
+ "schema" : {
49
+ "propertyNames" : { "pattern" : " ^a+$" }
50
+ },
51
+ "tests" : [
52
+ {
53
+ "description" : " matching property names valid" ,
54
+ "data" : {
55
+ "a" : {},
56
+ "aa" : {},
57
+ "aaa" : {}
58
+ },
59
+ "valid" : true
60
+ },
61
+ {
62
+ "description" : " non-matching property name is invalid" ,
63
+ "data" : {
64
+ "aaA" : {}
65
+ },
66
+ "valid" : false
67
+ },
68
+ {
69
+ "description" : " object without properties is valid" ,
70
+ "data" : {},
71
+ "valid" : true
72
+ }
73
+ ]
74
+ },
46
75
{
47
76
"description" : " propertyNames with boolean schema true" ,
48
77
"schema" : {"propertyNames" : true },
You can’t perform that action at this time.
0 commit comments