Skip to content

Commit 0680b46

Browse files
committed
Restore regex format test from draft-03
Since it is now restored to the formats list.
1 parent f58637d commit 0680b46

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/draft7/optional/format.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
[
2+
{
3+
"description": "validation of regular expressions",
4+
"schema": {"format": "regex"},
5+
"tests": [
6+
{
7+
"description": "a valid regular expression",
8+
"data": "([abc])+\\s+$",
9+
"valid": true
10+
},
11+
{
12+
"description": "a regular expression with unclosed parens is invalid",
13+
"data": "^(abc]",
14+
"valid": false
15+
}
16+
]
17+
},
218
{
319
"description": "validation of date-time strings",
420
"schema": {"format": "date-time"},

0 commit comments

Comments
 (0)