diff options
author | Julian Berman <Julian@GrayVines.com> | 2019-01-04 09:18:43 +0000 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2019-01-04 09:18:43 +0000 |
commit | a9b246360923ea728cd8676b6b31c4ba20cb59ce (patch) | |
tree | 59021f46e052ea6010f203085e97ae289be234cc /json/tests/draft3 | |
parent | aa6cf9ea6ee54a92c19307f5d841a4c71fa702e9 (diff) | |
parent | d2eb79f489f2647e2fc43fa341bb3ba7d307f4a6 (diff) | |
download | jsonschema-a9b246360923ea728cd8676b6b31c4ba20cb59ce.tar.gz |
Merge commit 'd2eb79f489f2647e2fc43fa341bb3ba7d307f4a6'
* commit 'd2eb79f489f2647e2fc43fa341bb3ba7d307f4a6':
Squashed 'json/' changes from 8c3d56d..8982b0b
Diffstat (limited to 'json/tests/draft3')
-rw-r--r-- | json/tests/draft3/additionalProperties.json | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/json/tests/draft3/additionalProperties.json b/json/tests/draft3/additionalProperties.json index d4b5d98..bfb0844 100644 --- a/json/tests/draft3/additionalProperties.json +++ b/json/tests/draft3/additionalProperties.json @@ -113,5 +113,21 @@ "valid": true } ] + }, + { + "description": "additionalProperties should not look in applicators", + "schema": { + "extends": [ + {"properties": {"foo": {}}} + ], + "additionalProperties": {"type": "boolean"} + }, + "tests": [ + { + "description": "properties defined in extends are not allowed", + "data": {"foo": 1, "bar": true}, + "valid": false + } + ] } ] |