diff options
Diffstat (limited to 'tests/draft6/optional/format/date-time.json')
-rw-r--r-- | tests/draft6/optional/format/date-time.json | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/tests/draft6/optional/format/date-time.json b/tests/draft6/optional/format/date-time.json index 2dd214a..119179c 100644 --- a/tests/draft6/optional/format/date-time.json +++ b/tests/draft6/optional/format/date-time.json @@ -1,9 +1,39 @@ [ { "description": "validation of date-time strings", - "schema": {"format": "date-time"}, + "schema": { "format": "date-time" }, "tests": [ { + "description": "all string formats ignore integers", + "data": 12, + "valid": true + }, + { + "description": "all string formats ignore floats", + "data": 13.7, + "valid": true + }, + { + "description": "all string formats ignore objects", + "data": {}, + "valid": true + }, + { + "description": "all string formats ignore arrays", + "data": [], + "valid": true + }, + { + "description": "all string formats ignore booleans", + "data": false, + "valid": true + }, + { + "description": "all string formats ignore nulls", + "data": null, + "valid": true + }, + { "description": "a valid date-time string", "data": "1963-06-19T08:30:06.283185Z", "valid": true |