File tree 3 files changed +82
-3
lines changed
3 files changed +82
-3
lines changed Original file line number Diff line number Diff line change 149
149
{
150
150
"description" : " unevaluatedItems with nested items" ,
151
151
"schema" : {
152
- "type" : " array" ,
152
+ "unevaluatedItems" : {"type" : " boolean" },
153
+ "anyOf" : [
154
+ { "items" : {"type" : " string" } },
155
+ true
156
+ ]
157
+ },
158
+ "tests" : [
159
+ {
160
+ "description" : " with only (valid) additional items" ,
161
+ "data" : [true , false ],
162
+ "valid" : true
163
+ },
164
+ {
165
+ "description" : " with no additional items" ,
166
+ "data" : [" yes" , " no" ],
167
+ "valid" : true
168
+ },
169
+ {
170
+ "description" : " with invalid additional item" ,
171
+ "data" : [" yes" , false ],
172
+ "valid" : false
173
+ }
174
+ ]
175
+ },
176
+ {
177
+ "description" : " unevaluatedItems with nested prefixItems and items" ,
178
+ "schema" : {
153
179
"allOf" : [
154
180
{
155
181
"prefixItems" : [
Original file line number Diff line number Diff line change 147
147
]
148
148
},
149
149
{
150
- "description" : " unevaluatedItems with nested additionalItems" ,
150
+ "description" : " unevaluatedItems with nested items" ,
151
+ "schema" : {
152
+ "unevaluatedItems" : {"type" : " boolean" },
153
+ "anyOf" : [
154
+ { "items" : {"type" : " string" } },
155
+ true
156
+ ]
157
+ },
158
+ "tests" : [
159
+ {
160
+ "description" : " with only (valid) additional items" ,
161
+ "data" : [true , false ],
162
+ "valid" : true
163
+ },
164
+ {
165
+ "description" : " with no additional items" ,
166
+ "data" : [" yes" , " no" ],
167
+ "valid" : true
168
+ },
169
+ {
170
+ "description" : " with invalid additional item" ,
171
+ "data" : [" yes" , false ],
172
+ "valid" : false
173
+ }
174
+ ]
175
+ },
176
+ {
177
+ "description" : " unevaluatedItems with nested items and additionalItems" ,
151
178
"schema" : {
152
179
"type" : " array" ,
153
180
"allOf" : [
Original file line number Diff line number Diff line change 149
149
{
150
150
"description" : " unevaluatedItems with nested items" ,
151
151
"schema" : {
152
- "type" : " array" ,
152
+ "unevaluatedItems" : {"type" : " boolean" },
153
+ "anyOf" : [
154
+ { "items" : {"type" : " string" } },
155
+ true
156
+ ]
157
+ },
158
+ "tests" : [
159
+ {
160
+ "description" : " with only (valid) additional items" ,
161
+ "data" : [true , false ],
162
+ "valid" : true
163
+ },
164
+ {
165
+ "description" : " with no additional items" ,
166
+ "data" : [" yes" , " no" ],
167
+ "valid" : true
168
+ },
169
+ {
170
+ "description" : " with invalid additional item" ,
171
+ "data" : [" yes" , false ],
172
+ "valid" : false
173
+ }
174
+ ]
175
+ },
176
+ {
177
+ "description" : " unevaluatedItems with nested prefixItems and items" ,
178
+ "schema" : {
153
179
"allOf" : [
154
180
{
155
181
"prefixItems" : [
You can’t perform that action at this time.
0 commit comments