File tree Expand file tree Collapse file tree 3 files changed +76
-1
lines changed Expand file tree Collapse file tree 3 files changed +76
-1
lines changed Original file line number Diff line number Diff line change 168
168
"valid" : true
169
169
}
170
170
]
171
+ },
172
+ {
173
+ "description" : " minContains = 0 with maxContains" ,
174
+ "schema" : {
175
+ "contains" : {"const" : 1 },
176
+ "minContains" : 0 ,
177
+ "maxContains" : 1
178
+ },
179
+ "tests" : [
180
+ {
181
+ "description" : " empty data" ,
182
+ "data" : [ ],
183
+ "valid" : true
184
+ },
185
+ {
186
+ "description" : " not more than maxContains" ,
187
+ "data" : [ 1 ],
188
+ "valid" : true
189
+ },
190
+ {
191
+ "description" : " too many" ,
192
+ "data" : [ 1 , 1 ],
193
+ "valid" : false
194
+ }
195
+ ]
171
196
}
172
197
]
Original file line number Diff line number Diff line change 151
151
]
152
152
},
153
153
{
154
- "description" : " minContains = 0" ,
154
+ "description" : " minContains = 0 with no maxContains " ,
155
155
"schema" : {
156
156
"contains" : {"const" : 1 },
157
157
"minContains" : 0
168
168
"valid" : true
169
169
}
170
170
]
171
+ },
172
+ {
173
+ "description" : " minContains = 0 with maxContains" ,
174
+ "schema" : {
175
+ "contains" : {"const" : 1 },
176
+ "minContains" : 0 ,
177
+ "maxContains" : 1
178
+ },
179
+ "tests" : [
180
+ {
181
+ "description" : " empty data" ,
182
+ "data" : [ ],
183
+ "valid" : true
184
+ },
185
+ {
186
+ "description" : " not more than maxContains" ,
187
+ "data" : [ 1 ],
188
+ "valid" : true
189
+ },
190
+ {
191
+ "description" : " too many" ,
192
+ "data" : [ 1 , 1 ],
193
+ "valid" : false
194
+ }
195
+ ]
171
196
}
172
197
]
Original file line number Diff line number Diff line change 168
168
"valid" : true
169
169
}
170
170
]
171
+ },
172
+ {
173
+ "description" : " minContains = 0 with maxContains" ,
174
+ "schema" : {
175
+ "contains" : {"const" : 1 },
176
+ "minContains" : 0 ,
177
+ "maxContains" : 1
178
+ },
179
+ "tests" : [
180
+ {
181
+ "description" : " empty data" ,
182
+ "data" : [ ],
183
+ "valid" : true
184
+ },
185
+ {
186
+ "description" : " not more than maxContains" ,
187
+ "data" : [ 1 ],
188
+ "valid" : true
189
+ },
190
+ {
191
+ "description" : " too many" ,
192
+ "data" : [ 1 , 1 ],
193
+ "valid" : false
194
+ }
195
+ ]
171
196
}
172
197
]
You can’t perform that action at this time.
0 commit comments