summaryrefslogtreecommitdiff
path: root/tests/draft4
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
commitd2eb79f489f2647e2fc43fa341bb3ba7d307f4a6 (patch)
treed84dbc9cf407ae4bf08115729d3e4c55ab0e4296 /tests/draft4
parent38e7f0b784a64de4cee9e53dd118fd558fb3bf6e (diff)
downloadjsonschema-d2eb79f489f2647e2fc43fa341bb3ba7d307f4a6.tar.gz
Squashed 'json/' changes from 8c3d56d..8982b0b
8982b0b Merge pull request #243 from gregsdennis/master 432eab6 added draft-03 version f55b4c2 Added test for additional properties looking in applicator keywords git-subtree-dir: json git-subtree-split: 8982b0ba6d721b09d91ebbf2414fdf443e4740b4
Diffstat (limited to 'tests/draft4')
-rw-r--r--tests/draft4/additionalProperties.json16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/draft4/additionalProperties.json b/tests/draft4/additionalProperties.json
index d4b5d98..ffeac6b 100644
--- a/tests/draft4/additionalProperties.json
+++ b/tests/draft4/additionalProperties.json
@@ -113,5 +113,21 @@
"valid": true
}
]
+ },
+ {
+ "description": "additionalProperties should not look in applicators",
+ "schema": {
+ "allOf": [
+ {"properties": {"foo": {}}}
+ ],
+ "additionalProperties": {"type": "boolean"}
+ },
+ "tests": [
+ {
+ "description": "properties defined in allOf are not allowed",
+ "data": {"foo": 1, "bar": true},
+ "valid": false
+ }
+ ]
}
]