summaryrefslogtreecommitdiff
path: root/json/tests/draft3
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2019-01-04 09:18:43 +0000
committerJulian Berman <Julian@GrayVines.com>2019-01-04 09:18:43 +0000
commita9b246360923ea728cd8676b6b31c4ba20cb59ce (patch)
tree59021f46e052ea6010f203085e97ae289be234cc /json/tests/draft3
parentaa6cf9ea6ee54a92c19307f5d841a4c71fa702e9 (diff)
parentd2eb79f489f2647e2fc43fa341bb3ba7d307f4a6 (diff)
downloadjsonschema-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.json16
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
+ }
+ ]
}
]