Skip to content

Commit f506651

Browse files
karenetheridgeJulian
authored andcommitted
squash: fix minContains
1 parent b666c20 commit f506651

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

tests/draft4/future-keywords.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@
216216
{
217217
"description": "empty data",
218218
"data": [ ],
219-
"valid": true
219+
"valid": false
220220
},
221221
{
222222
"description": "all elements match, valid maxContains",
@@ -250,7 +250,7 @@
250250
{
251251
"description": "empty data",
252252
"data": [ ],
253-
"valid": true
253+
"valid": false
254254
},
255255
{
256256
"description": "all elements match, invalid minContains",
@@ -287,14 +287,14 @@
287287
},
288288
"tests": [
289289
{
290-
"description": "empty array is invalid",
290+
"description": "empty array is valid with minContains=0",
291291
"data": [ ],
292-
"valid": true
292+
"valid": false
293293
},
294294
{
295295
"description": "minContains = 0 would make contains always pass",
296296
"data": [ 2 ],
297-
"valid": true
297+
"valid": false
298298
}
299299
]
300300
},

tests/draft6/future-keywords.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@
287287
},
288288
"tests": [
289289
{
290-
"description": "empty array is invalid",
290+
"description": "empty array is valid with minContains=0",
291291
"data": [ ],
292292
"valid": false
293293
},

tests/draft7/future-keywords.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@
287287
},
288288
"tests": [
289289
{
290-
"description": "empty array is invalid",
290+
"description": "empty array is valid with minContains=0",
291291
"data": [ ],
292292
"valid": false
293293
},

0 commit comments

Comments
 (0)