diff options
Diffstat (limited to 'tests/draft4')
-rw-r--r-- | tests/draft4/additionalProperties.json | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/draft4/additionalProperties.json b/tests/draft4/additionalProperties.json index c997f75..eb334c9 100644 --- a/tests/draft4/additionalProperties.json +++ b/tests/draft4/additionalProperties.json @@ -4,6 +4,7 @@ "additionalProperties being false does not allow other properties", "schema": { "properties": {"foo": {}, "bar": {}}, + "patternProperties": { "^v": {} }, "additionalProperties": false }, "tests": [ @@ -21,6 +22,11 @@ "description": "ignores non-objects", "data": [1, 2, 3], "valid": true + }, + { + "description": "patternProperties are not additional properties", + "data": {"foo":1, "vroom": 2}, + "valid": true } ] }, |