summaryrefslogtreecommitdiff
path: root/json
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2022-06-16 15:31:03 -0400
committerJulian Berman <Julian@GrayVines.com>2022-06-16 15:31:03 -0400
commit057ab97835efdbd05e30d23385fbe4a0b3b38b32 (patch)
treef196d655a1155e72e535f8730a8ac7d7c5165bca /json
parent2fe9e0d28f5a994269a205b03236e0a94f5d67c6 (diff)
parentfdf82687138a183afe24b8d892c5ccf3db221b03 (diff)
downloadjsonschema-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.json11
-rw-r--r--json/tests/draft2020-12/optional/ecmascript-regex.json11
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": [