summaryrefslogtreecommitdiff
path: root/tests/draft2019-09/optional/format/regex.json
blob: d99d021ec02c638cf2e7b64a56b8e78744ad3168 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[
    {
        "description": "validation of regular expressions",
        "schema": {"format": "regex"},
        "tests": [
            {
                "description": "a valid regular expression",
                "data": "([abc])+\\s+$",
                "valid": true
            },
            {
                "description": "a regular expression with unclosed parens is invalid",
                "data": "^(abc]",
                "valid": false
            }
        ]
    }
]