diff options
author | Julian Berman <Julian@GrayVines.com> | 2021-04-28 09:33:03 -0400 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2021-04-28 09:33:03 -0400 |
commit | 783d81d5ef41ddda7681bd63f6fb7ce05ef3d8d8 (patch) | |
tree | cc4bd5ff399308db833c6d74721ebc9bb761e89f /json/tests/draft7/optional | |
parent | a241799a5a5ffafaa93d6dd9b9cd8762e02525c6 (diff) | |
parent | c19f0b4ee66ce10217185fa8d2c8b7a2784e3a31 (diff) | |
download | jsonschema-783d81d5ef41ddda7681bd63f6fb7ce05ef3d8d8.tar.gz |
Merge commit 'c19f0b4ee66ce10217185fa8d2c8b7a2784e3a31'
* commit 'c19f0b4ee66ce10217185fa8d2c8b7a2784e3a31':
Squashed 'json/' changes from 15ec577f..09fd353f
Diffstat (limited to 'json/tests/draft7/optional')
-rw-r--r-- | json/tests/draft7/optional/format/time.json | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/json/tests/draft7/optional/format/time.json b/json/tests/draft7/optional/format/time.json index 4ec8a01..74e8bf9 100644 --- a/json/tests/draft7/optional/format/time.json +++ b/json/tests/draft7/optional/format/time.json @@ -5,10 +5,85 @@ "tests": [ { "description": "a valid time string", + "data": "08:30:06Z", + "valid": true + }, + { + "description": "a valid time string with leap second", + "data": "23:59:60Z", + "valid": true + }, + { + "description": "a valid time string with leap second with offset", + "data": "15:59:60-08:00", + "valid": true + }, + { + "description": "a valid time string with second fraction", + "data": "23:20:50.52Z", + "valid": true + }, + { + "description": "a valid time string with precise second fraction", "data": "08:30:06.283185Z", "valid": true }, { + "description": "a valid time string with plus offset", + "data": "08:30:06+00:20", + "valid": true + }, + { + "description": "a valid time string with minus offset", + "data": "08:30:06-08:00", + "valid": true + }, + { + "description": "a valid time string with case-insensitive Z", + "data": "08:30:06z", + "valid": true + }, + { + "description": "an invalid time string with invalid hour", + "data": "24:00:00Z", + "valid": false + }, + { + "description": "an invalid time string with invalid minute", + "data": "00:60:00Z", + "valid": false + }, + { + "description": "an invalid time string with invalid second", + "data": "00:00:61Z", + "valid": false + }, + { + "description": "an invalid time string with invalid leap second (wrong hour)", + "data": "22:59:60Z", + "valid": false + }, + { + "description": "an invalid time string with invalid leap second (wrong minute)", + "data": "23:58:60Z", + "valid": false + }, + { + "description": "an invalid time string with invalid time numoffset hour", + "data": "01:02:03+24:00", + "valid": false + }, + { + "description": "an invalid time string with invalid time numoffset minute", + "data": "01:02:03+00:60", + "valid": false + }, + { + "description": "an invalid time string with invalid time with both Z and numoffset", + "data": "01:02:03Z+00:30", + "valid": false + }, + { "description": "an invalid time string", "data": "08:30:06 PST", "valid": false |