Skip to content

Commit 0ed2e79

Browse files
committed
Fix negative time test to only fail on a single rule
We are failing on `Z+` not the invalid minute, so let's make sure that implementors are catching that case not the (mis-copy of 00:60).
1 parent 2edc74b commit 0ed2e79

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/draft2019-09/optional/format/time.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
},
8181
{
8282
"description": "an invalid time string with invalid time with both Z and numoffset",
83-
"data": "01:02:03Z+00:60",
83+
"data": "01:02:03Z+00:30",
8484
"valid": false
8585
},
8686
{

tests/draft2020-12/optional/format/time.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
},
8181
{
8282
"description": "an invalid time string with invalid time with both Z and numoffset",
83-
"data": "01:02:03Z+00:60",
83+
"data": "01:02:03Z+00:30",
8484
"valid": false
8585
},
8686
{

tests/draft7/optional/format/time.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
},
8181
{
8282
"description": "an invalid time string with invalid time with both Z and numoffset",
83-
"data": "01:02:03Z+00:60",
83+
"data": "01:02:03Z+00:30",
8484
"valid": false
8585
},
8686
{

0 commit comments

Comments
 (0)