diff options
Diffstat (limited to 'json/tests/draft4/additionalItems.json')
-rw-r--r-- | json/tests/draft4/additionalItems.json | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/json/tests/draft4/additionalItems.json b/json/tests/draft4/additionalItems.json index 69ea5e3..ee46b61 100644 --- a/json/tests/draft4/additionalItems.json +++ b/json/tests/draft4/additionalItems.json @@ -93,5 +93,38 @@ "valid": true } ] + }, + { + "description": "additionalItems should not look in applicators, valid case", + "schema": { + "allOf": [ + { "items": [ { "type": "integer" } ] } + ], + "additionalItems": { "type": "boolean" } + }, + "tests": [ + { + "description": "items defined in allOf are not examined", + "data": [ 1, null ], + "valid": true + } + ] + }, + { + "description": "additionalItems should not look in applicators, invalid case", + "schema": { + "allOf": [ + { "items": [ { "type": "integer" }, { "type": "string" } ] } + ], + "items": [ {"type": "integer" } ], + "additionalItems": { "type": "boolean" } + }, + "tests": [ + { + "description": "items defined in allOf are not examined", + "data": [ 1, "hello" ], + "valid": false + } + ] } ] |