File tree Expand file tree Collapse file tree 5 files changed +95
-0
lines changed Expand file tree Collapse file tree 5 files changed +95
-0
lines changed Original file line number Diff line number Diff line change 126
126
"valid" : false
127
127
}
128
128
]
129
+ },
130
+ {
131
+ "description" : " items validation adjusts the starting index for additionalItems" ,
132
+ "schema" : {
133
+ "items" : [ { "type" : " string" } ],
134
+ "additionalItems" : { "type" : " integer" }
135
+ },
136
+ "tests" : [
137
+ {
138
+ "description" : " valid items" ,
139
+ "data" : [ " x" , 2 , 3 ],
140
+ "valid" : true
141
+ },
142
+ {
143
+ "description" : " wrong type of second item" ,
144
+ "data" : [ " x" , " y" ],
145
+ "valid" : false
146
+ }
147
+ ]
129
148
}
130
149
]
Original file line number Diff line number Diff line change 233
233
"valid" : true
234
234
}
235
235
]
236
+ },
237
+ {
238
+ "description" : " prefixItems validation adjusts the starting index for items" ,
239
+ "schema" : {
240
+ "prefixItems" : [ { "type" : " string" } ],
241
+ "items" : { "type" : " integer" }
242
+ },
243
+ "tests" : [
244
+ {
245
+ "description" : " valid items" ,
246
+ "data" : [ " x" , 2 , 3 ],
247
+ "valid" : true
248
+ },
249
+ {
250
+ "description" : " wrong type of second item" ,
251
+ "data" : [ " x" , " y" ],
252
+ "valid" : false
253
+ }
254
+ ]
236
255
}
237
256
]
Original file line number Diff line number Diff line change 126
126
"valid" : false
127
127
}
128
128
]
129
+ },
130
+ {
131
+ "description" : " items validation adjusts the starting index for additionalItems" ,
132
+ "schema" : {
133
+ "items" : [ { "type" : " string" } ],
134
+ "additionalItems" : { "type" : " integer" }
135
+ },
136
+ "tests" : [
137
+ {
138
+ "description" : " valid items" ,
139
+ "data" : [ " x" , 2 , 3 ],
140
+ "valid" : true
141
+ },
142
+ {
143
+ "description" : " wrong type of second item" ,
144
+ "data" : [ " x" , " y" ],
145
+ "valid" : false
146
+ }
147
+ ]
129
148
}
130
149
]
Original file line number Diff line number Diff line change 126
126
"valid" : false
127
127
}
128
128
]
129
+ },
130
+ {
131
+ "description" : " items validation adjusts the starting index for additionalItems" ,
132
+ "schema" : {
133
+ "items" : [ { "type" : " string" } ],
134
+ "additionalItems" : { "type" : " integer" }
135
+ },
136
+ "tests" : [
137
+ {
138
+ "description" : " valid items" ,
139
+ "data" : [ " x" , 2 , 3 ],
140
+ "valid" : true
141
+ },
142
+ {
143
+ "description" : " wrong type of second item" ,
144
+ "data" : [ " x" , " y" ],
145
+ "valid" : false
146
+ }
147
+ ]
129
148
}
130
149
]
Original file line number Diff line number Diff line change 126
126
"valid" : false
127
127
}
128
128
]
129
+ },
130
+ {
131
+ "description" : " items validation adjusts the starting index for additionalItems" ,
132
+ "schema" : {
133
+ "items" : [ { "type" : " string" } ],
134
+ "additionalItems" : { "type" : " integer" }
135
+ },
136
+ "tests" : [
137
+ {
138
+ "description" : " valid items" ,
139
+ "data" : [ " x" , 2 , 3 ],
140
+ "valid" : true
141
+ },
142
+ {
143
+ "description" : " wrong type of second item" ,
144
+ "data" : [ " x" , " y" ],
145
+ "valid" : false
146
+ }
147
+ ]
129
148
}
130
149
]
You can’t perform that action at this time.
0 commit comments