Skip to content

Commit 189e231

Browse files
committed
Fix the additionalItems tests.
Closes #4
1 parent a0a6e71 commit 189e231

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/draft3/additionalItems.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@
22
{
33
"description": "additionalItems as schema",
44
"schema": {
5+
"items": [],
56
"additionalItems": {"type": "integer"}
67
},
78
"tests": [
89
{
9-
"description": "all items match schema",
10-
"data": [ 1, 2, 3, 4.5, 5 ],
10+
"description": "additional items match schema",
11+
"data": [ 1, 2, 3, 4 ],
1112
"valid": true
1213
},
1314
{
14-
"description": "all items match schema",
15+
"description": "additional items do not match schema",
1516
"data": [ 1, 2, 3, "foo" ],
1617
"valid": false
1718
}

0 commit comments

Comments
 (0)