diff options
Diffstat (limited to 'json/tests/draft3/optional/format/regex.json')
-rw-r--r-- | json/tests/draft3/optional/format/regex.json | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/json/tests/draft3/optional/format/regex.json b/json/tests/draft3/optional/format/regex.json new file mode 100644 index 0000000..8a37763 --- /dev/null +++ b/json/tests/draft3/optional/format/regex.json @@ -0,0 +1,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 + } + ] + } +] |