diff options
Diffstat (limited to 'json/tests/draft2020-12/optional/format')
-rw-r--r-- | json/tests/draft2020-12/optional/format/time.json | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/json/tests/draft2020-12/optional/format/time.json b/json/tests/draft2020-12/optional/format/time.json index ae31d2c..8967932 100644 --- a/json/tests/draft2020-12/optional/format/time.json +++ b/json/tests/draft2020-12/optional/format/time.json @@ -42,6 +42,21 @@ "valid": true }, { + "description": "invalid time string with extra leading zeros", + "data": "008:030:006Z", + "valid": false + }, + { + "description": "invalid time string with no leading zero for single digit", + "data": "8:3:6Z", + "valid": false + }, + { + "description": "hour, minute, second must be two digits", + "data": "8:0030:6Z", + "valid": false + }, + { "description": "a valid time string with leap second, Zulu", "data": "23:59:60Z", "valid": true @@ -132,6 +147,11 @@ "valid": true }, { + "description": "hour, minute in time-offset must be two digits", + "data": "08:30:06-8:000", + "valid": false + }, + { "description": "a valid time string with case-insensitive Z", "data": "08:30:06z", "valid": true |