diff options
author | Julian Berman <Julian@GrayVines.com> | 2022-06-16 15:31:03 -0400 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2022-06-16 15:31:03 -0400 |
commit | 057ab97835efdbd05e30d23385fbe4a0b3b38b32 (patch) | |
tree | f196d655a1155e72e535f8730a8ac7d7c5165bca /json | |
parent | 2fe9e0d28f5a994269a205b03236e0a94f5d67c6 (diff) | |
parent | fdf82687138a183afe24b8d892c5ccf3db221b03 (diff) | |
download | jsonschema-057ab97835efdbd05e30d23385fbe4a0b3b38b32.tar.gz |
Merge commit 'fdf82687138a183afe24b8d892c5ccf3db221b03'
* commit 'fdf82687138a183afe24b8d892c5ccf3db221b03':
Squashed 'json/' changes from 387d690ae..e42e8417b
Diffstat (limited to 'json')
-rw-r--r-- | json/tests/draft-next/optional/ecmascript-regex.json | 11 | ||||
-rw-r--r-- | json/tests/draft2020-12/optional/ecmascript-regex.json | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/json/tests/draft-next/optional/ecmascript-regex.json b/json/tests/draft-next/optional/ecmascript-regex.json index 1beb0b3..5bbfc45 100644 --- a/json/tests/draft-next/optional/ecmascript-regex.json +++ b/json/tests/draft-next/optional/ecmascript-regex.json @@ -384,6 +384,17 @@ ] }, { + "description": "\\a is not an ECMA 262 control escape", + "schema": { "$ref": "https://json-schema.org/draft/next/schema" }, + "tests": [ + { + "description": "when used as a pattern", + "data": { "pattern": "\\a" }, + "valid": false + } + ] + }, + { "description": "unicode digits are more than 0 through 9", "schema": { "pattern": "^\\p{digit}+$" }, "tests": [ diff --git a/json/tests/draft2020-12/optional/ecmascript-regex.json b/json/tests/draft2020-12/optional/ecmascript-regex.json index 1beb0b3..bb92acd 100644 --- a/json/tests/draft2020-12/optional/ecmascript-regex.json +++ b/json/tests/draft2020-12/optional/ecmascript-regex.json @@ -384,6 +384,17 @@ ] }, { + "description": "\\a is not an ECMA 262 control escape", + "schema": { "$ref": "https://json-schema.org/draft/2020-12/schema" }, + "tests": [ + { + "description": "when used as a pattern", + "data": { "pattern": "\\a" }, + "valid": false + } + ] + }, + { "description": "unicode digits are more than 0 through 9", "schema": { "pattern": "^\\p{digit}+$" }, "tests": [ |