summaryrefslogtreecommitdiff
path: root/json/tests/draft3/additionalProperties.json
diff options
context:
space:
mode:
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": [