Skip to content

Commit fe1b139

Browse files
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.
1 parent 9fc880b commit fe1b139

File tree

5 files changed

+32
-28
lines changed

5 files changed

+32
-28
lines changed

tests/draft-next/optional/ecmascript-regex.json

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -405,20 +405,6 @@
405405
}
406406
]
407407
},
408-
{
409-
"description": "\\a is not an ECMA 262 control escape",
410-
"schema": {
411-
"$schema": "https://json-schema.org/draft/next/schema",
412-
"format": "regex"
413-
},
414-
"tests": [
415-
{
416-
"description": "when used as a pattern",
417-
"data": "\\a",
418-
"valid": false
419-
}
420-
]
421-
},
422408
{
423409
"description": "pattern with non-ASCII digits",
424410
"schema": {
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[
2+
{
3+
"description": "\\a is not an ECMA 262 control escape",
4+
"schema": {
5+
"$schema": "https://json-schema.org/draft/next/schema",
6+
"format": "regex"
7+
},
8+
"tests": [
9+
{
10+
"description": "when used as a pattern",
11+
"data": "\\a",
12+
"valid": false
13+
}
14+
]
15+
}
16+
]

tests/draft2020-12/optional/ecmascript-regex.json

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -405,20 +405,6 @@
405405
}
406406
]
407407
},
408-
{
409-
"description": "\\a is not an ECMA 262 control escape",
410-
"schema": {
411-
"$schema": "https://json-schema.org/draft/2020-12/schema",
412-
"format": "regex"
413-
},
414-
"tests": [
415-
{
416-
"description": "when used as a pattern",
417-
"data": "\\a",
418-
"valid": false
419-
}
420-
]
421-
},
422408
{
423409
"description": "pattern with non-ASCII digits",
424410
"schema": {
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[
2+
{
3+
"description": "\\a is not an ECMA 262 control escape",
4+
"schema": {
5+
"$schema": "https://json-schema.org/draft/2020-12/schema",
6+
"format": "regex"
7+
},
8+
"tests": [
9+
{
10+
"description": "when used as a pattern",
11+
"data": "\\a",
12+
"valid": false
13+
}
14+
]
15+
}
16+
]

0 commit comments

Comments
 (0)