summaryrefslogtreecommitdiff
path: root/json/tests/draft3/additionalItems.json
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2020-06-09 19:00:09 -0400
committerJulian Berman <Julian@GrayVines.com>2020-06-09 19:00:09 -0400
commit3f58e36754b3e2872a256874c1ffdd30c677f709 (patch)
tree157cf84b5880faee6fab531f6e90d36e326b99e7 /json/tests/draft3/additionalItems.json
parent3b85db9769390b4dc713fbf09ab76a760e48fea3 (diff)
parent4a4930a09fa25251ad0f02395f3c6aa0fd7e3a82 (diff)
downloadjsonschema-3f58e36754b3e2872a256874c1ffdd30c677f709.tar.gz
Merge commit '4a4930a09fa25251ad0f02395f3c6aa0fd7e3a82'
* commit '4a4930a09fa25251ad0f02395f3c6aa0fd7e3a82': Squashed 'json/' changes from 9d0e0eb..817b724
Diffstat (limited to 'json/tests/draft3/additionalItems.json')
-rw-r--r--json/tests/draft3/additionalItems.json21
1 files changed, 18 insertions, 3 deletions
diff --git a/json/tests/draft3/additionalItems.json b/json/tests/draft3/additionalItems.json
index 6d4bff5..3868cb4 100644
--- a/json/tests/draft3/additionalItems.json
+++ b/json/tests/draft3/additionalItems.json
@@ -40,7 +40,22 @@
},
"tests": [
{
- "description": "no additional items present",
+ "description": "empty array",
+ "data": [ ],
+ "valid": true
+ },
+ {
+ "description": "fewer number of items present (1)",
+ "data": [ 1 ],
+ "valid": true
+ },
+ {
+ "description": "fewer number of items present (2)",
+ "data": [ 1, 2 ],
+ "valid": true
+ },
+ {
+ "description": "equal number of items present",
"data": [ 1, 2, 3 ],
"valid": true
},
@@ -70,10 +85,10 @@
},
{
"description": "additionalItems are allowed by default",
- "schema": {"items": []},
+ "schema": {"items": [{"type": "integer"}]},
"tests": [
{
- "description": "only the first items are validated",
+ "description": "only the first item is validated",
"data": [1, "foo", false],
"valid": true
}