summaryrefslogtreecommitdiff
path: root/tests/draft2020-12/optional/format/date-time.json
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2021-10-19 18:34:35 -0400
committerJulian Berman <Julian@GrayVines.com>2021-10-19 18:34:35 -0400
commit4ecbea58e0828696f7714abba624e2160518fddd (patch)
tree395a5d1b72c0baa3323ef91446d4d19cf0d6ea13 /tests/draft2020-12/optional/format/date-time.json
parentcf886386cc0996df6743b425f74675a6d8a1a9ca (diff)
downloadjsonschema-4ecbea58e0828696f7714abba624e2160518fddd.tar.gz
Squashed 'json/' changes from 54440eab4..ba3a90534
ba3a90534 Merge pull request #523 from olegshtch/extendible-schema-test-suite 458e7ac1e Add test suite to test dynamic reference and anchor link and their independency of order fe405a119 draft/future -> draft/next in $refs also 3d9d35a2a Merge pull request #522 from json-schema-org/ether/draft-next 11b5076f0 rename draft-future to draft-next 0245dcc94 Merge pull request #521 from olegshtch/add-recursive-ref-test-suite e9fb9cf45 Merge pull request #517 from ChALkeR/chalker/date-time-leap f1b230c69 Add test from Appendix C. Example of recursive schema extension of the draft. bb2e37317 Test date-time with leap second on a wrong hour/minute 8b797cfe6 Merge pull request #520 from json-schema-org/ether/custom-dialect 5d23f3112 Add tests for invalid date-time past leap second 63f8e93c1 Improve leap seconds test in optional/format/date-time 3d00f593d test the use of the $vocabulary keyword in a custom metaschema git-subtree-dir: json git-subtree-split: ba3a9053400dd6237aef9cc63601758b1d266818
Diffstat (limited to 'tests/draft2020-12/optional/format/date-time.json')
-rw-r--r--tests/draft2020-12/optional/format/date-time.json31
1 files changed, 28 insertions, 3 deletions
diff --git a/tests/draft2020-12/optional/format/date-time.json b/tests/draft2020-12/optional/format/date-time.json
index 119179c..f4f9933 100644
--- a/tests/draft2020-12/optional/format/date-time.json
+++ b/tests/draft2020-12/optional/format/date-time.json
@@ -54,13 +54,38 @@
"valid": true
},
{
- "description": "a invalid day in date-time string",
- "data": "1990-02-31T15:59:60.123-08:00",
+ "description": "a valid date-time with a leap second, UTC",
+ "data": "1998-12-31T23:59:60Z",
+ "valid": true
+ },
+ {
+ "description": "a valid date-time with a leap second, with minus offset",
+ "data": "1998-12-31T15:59:60.123-08:00",
+ "valid": true
+ },
+ {
+ "description": "an invalid date-time past leap second, UTC",
+ "data": "1998-12-31T23:59:61Z",
+ "valid": false
+ },
+ {
+ "description": "an invalid date-time with leap second on a wrong minute, UTC",
+ "data": "1998-12-31T23:58:60Z",
+ "valid": false
+ },
+ {
+ "description": "an invalid date-time with leap second on a wrong hour, UTC",
+ "data": "1998-12-31T22:59:60Z",
+ "valid": false
+ },
+ {
+ "description": "an invalid day in date-time string",
+ "data": "1990-02-31T15:59:59.123-08:00",
"valid": false
},
{
"description": "an invalid offset in date-time string",
- "data": "1990-12-31T15:59:60-24:00",
+ "data": "1990-12-31T15:59:59-24:00",
"valid": false
},
{