Skip to content

Commit f137b81

Browse files
committed
add checks to draft3
1 parent 3aa603f commit f137b81

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/draft3/optional/format/date.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,21 @@
1212
"description": "an invalid date string",
1313
"data": "06/19/1963",
1414
"valid": false
15+
},
16+
{
17+
"description": "only RFC3339 not all of ISO 8601 are valid",
18+
"data": "2013-350",
19+
"valid": false
20+
},
21+
{
22+
"description": "invalidates non-padded month dates",
23+
"data": "1998-1-20",
24+
"valid": false
25+
},
26+
{
27+
"description": "invalidates non-padded day dates",
28+
"data": "1998-01-1",
29+
"valid": false
1530
}
1631
]
1732
}

0 commit comments

Comments
 (0)