File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 106
106
"valid" : false
107
107
}
108
108
]
109
+ },
110
+ {
111
+ "description" : " patternProperties with boolean schemas" ,
112
+ "schema" : {
113
+ "patternProperties" : {
114
+ "f.*" : true ,
115
+ "b.*" : false
116
+ }
117
+ },
118
+ "tests" : [
119
+ {
120
+ "description" : " object with property matching schema true is valid" ,
121
+ "data" : {"foo" : 1 },
122
+ "valid" : true
123
+ },
124
+ {
125
+ "description" : " object with property matching schema false is invalid" ,
126
+ "data" : {"bar" : 2 },
127
+ "valid" : false
128
+ },
129
+ {
130
+ "description" : " object with both properties is invalid" ,
131
+ "data" : {"foo" : 1 , "bar" : 2 },
132
+ "valid" : false
133
+ },
134
+ {
135
+ "description" : " empty object is valid" ,
136
+ "data" : {},
137
+ "valid" : true
138
+ }
139
+ ]
109
140
}
110
141
]
You can’t perform that action at this time.
0 commit comments