Skip to content

Commit

Permalink
Merge pull request #127 from iainbeeston/extra-items-tests
Browse files Browse the repository at this point in the history
Added tests for items when data contains more or less types than the schema
  • Loading branch information
Julian authored Nov 20, 2016
2 parents 27692ac + 654cc26 commit efb3c89
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/draft4/items.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,21 @@
"description": "wrong types",
"data": [ "foo", 1 ],
"valid": false
},
{
"description": "incomplete array of items",
"data": [ 1 ],
"valid": true
},
{
"description": "array with additional items",
"data": [ 1, "foo", true ],
"valid": true
},
{
"description": "empty array",
"data": [ ],
"valid": true
}
]
}
Expand Down

0 comments on commit efb3c89

Please sign in to comment.