Description
Describe the bug
Format assertions should be enabled for optional/ecmascript-regex.json
as the \\a is not an ECMA 262 control escape
test is a format "format": "regex"
that expects the result to be invalid.
{
"description": "\\a is not an ECMA 262 control escape",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"format": "regex"
},
"tests": [
{
"description": "when used as a pattern",
"data": "\\a",
"valid": false
}
]
}
Additional context
The current networknt json-schema-validator 1.4.0 doesn't pass the test but an upcoming version will.