-
-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
All format test cases should be under the
format
directory.
Currently, there exists an ecma regex test case that uses `"format": "regex"`. My understanding was that all tests that require format validation where implemented under the `optional/format` directory. (As per point #2 of https://github.com/json-schema-org/JSON-Schema-Test-Suite/blob/9fc880bfb6d8ccd093bc82431f17d13681ffae8e/README.md#additional-assumptions). As such, this change moves the test requiring `format` under the `optional/format` directory.
- Loading branch information
1 parent
9fc880b
commit fe1b139
Showing
5 changed files
with
32 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[ | ||
{ | ||
"description": "\\a is not an ECMA 262 control escape", | ||
"schema": { | ||
"$schema": "https://json-schema.org/draft/next/schema", | ||
"format": "regex" | ||
}, | ||
"tests": [ | ||
{ | ||
"description": "when used as a pattern", | ||
"data": "\\a", | ||
"valid": false | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[ | ||
{ | ||
"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 | ||
} | ||
] | ||
} | ||
] |
File renamed without changes.