diff options
Diffstat (limited to 'json/tests/draft2019-09/optional/no-schema.json')
-rw-r--r-- | json/tests/draft2019-09/optional/no-schema.json | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/json/tests/draft2019-09/optional/no-schema.json b/json/tests/draft2019-09/optional/no-schema.json new file mode 100644 index 0000000..676e6b5 --- /dev/null +++ b/json/tests/draft2019-09/optional/no-schema.json @@ -0,0 +1,26 @@ +[ + { + "description": "validation without $schema", + "comment": "minLength is the same across all drafts", + "schema": { + "minLength": 2 + }, + "tests": [ + { + "description": "a 3-character string is valid", + "data": "foo", + "valid": true + }, + { + "description": "a 1-character string is not valid", + "data": "a", + "valid": false + }, + { + "description": "a non-string is valid", + "data": 5, + "valid": true + } + ] + } +] |