diff options
author | Julian Berman <Julian@GrayVines.com> | 2018-05-12 20:09:43 -0400 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2018-05-12 20:09:43 -0400 |
commit | bbae294e92175f68cec397b0961431301d88a156 (patch) | |
tree | 826b79240687d0100bd5489ab74a043734dbe9bd /json/tests/draft3 | |
parent | 361c6d5096658d058483c7f8d16d2cf0222d62d6 (diff) | |
parent | 86baa128d16324ed62a2cc5cdf5db276d8e0d734 (diff) | |
download | jsonschema-bbae294e92175f68cec397b0961431301d88a156.tar.gz |
Merge commit '86baa128d16324ed62a2cc5cdf5db276d8e0d734'
* commit '86baa128d16324ed62a2cc5cdf5db276d8e0d734':
Squashed 'json/' changes from cb2b906..2ca50c0
Diffstat (limited to 'json/tests/draft3')
-rw-r--r-- | json/tests/draft3/additionalProperties.json | 19 | ||||
-rw-r--r-- | json/tests/draft3/optional/format.json | 5 |
2 files changed, 24 insertions, 0 deletions
diff --git a/json/tests/draft3/additionalProperties.json b/json/tests/draft3/additionalProperties.json index 90d7607..d4b5d98 100644 --- a/json/tests/draft3/additionalProperties.json +++ b/json/tests/draft3/additionalProperties.json @@ -41,6 +41,25 @@ ] }, { + "description": "non-ASCII pattern with additionalProperties", + "schema": { + "patternProperties": {"^á": {}}, + "additionalProperties": false + }, + "tests": [ + { + "description": "matching the pattern is valid", + "data": {"ármányos": 2}, + "valid": true + }, + { + "description": "not matching the pattern is invalid", + "data": {"élmény": 2}, + "valid": false + } + ] + }, + { "description": "additionalProperties allows a schema which should validate", "schema": { diff --git a/json/tests/draft3/optional/format.json b/json/tests/draft3/optional/format.json index d53c753..9864589 100644 --- a/json/tests/draft3/optional/format.json +++ b/json/tests/draft3/optional/format.json @@ -30,6 +30,11 @@ "valid": false }, { + "description": "case-insensitive T and Z", + "data": "1963-06-19t08:30:06.283185z", + "valid": true + }, + { "description": "only RFC3339 not all of ISO 8601 are valid", "data": "2013-350T01:01:01", "valid": false |