summaryrefslogtreecommitdiff
path: root/json/tests/draft3/additionalProperties.json
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2015-03-22 13:31:54 -0400
committerJulian Berman <Julian@GrayVines.com>2015-03-22 13:31:54 -0400
commita3b999cbcee87d3f02a3a463ea0e76038f8c8b8b (patch)
treefcfc15b7e63bb08f9c5c83f33bb8092fb27f5db8 /json/tests/draft3/additionalProperties.json
parentf672988e2cb68aec04877d288057c37bf9587e44 (diff)
parente886fd27a6a276c784f4e8af99412950208f3f7b (diff)
downloadjsonschema-perf_cache_resolving.tar.gz
Merge commit 'e886fd27a6a276c784f4e8af99412950208f3f7b' into perf_cache_resolvingperf_cache_resolving
* commit 'e886fd27a6a276c784f4e8af99412950208f3f7b': Squashed 'json/' changes from 9208016..0b657e8
Diffstat (limited to 'json/tests/draft3/additionalProperties.json')
-rw-r--r--json/tests/draft3/additionalProperties.json19
1 files changed, 19 insertions, 0 deletions
diff --git a/json/tests/draft3/additionalProperties.json b/json/tests/draft3/additionalProperties.json
index eb334c9..40831f9 100644
--- a/json/tests/draft3/additionalProperties.json
+++ b/json/tests/draft3/additionalProperties.json
@@ -56,6 +56,25 @@
]
},
{
+ "description":
+ "additionalProperties can exist by itself",
+ "schema": {
+ "additionalProperties": {"type": "boolean"}
+ },
+ "tests": [
+ {
+ "description": "an additional valid property is valid",
+ "data": {"foo" : true},
+ "valid": true
+ },
+ {
+ "description": "an additional invalid property is invalid",
+ "data": {"foo" : 1},
+ "valid": false
+ }
+ ]
+ },
+ {
"description": "additionalProperties are allowed by default",
"schema": {"properties": {"foo": {}, "bar": {}}},
"tests": [