Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions tests/draft2019-09/optional/format/date.json
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,54 @@
"description": "an invalid time string in date-time format",
"data": "2020-11-28T23:55:45Z",
"valid": false
},
{
"description": "year 0000 is a leap year (0 % 400 == 0)",
"comment": "https://www.rfc-editor.org/rfc/rfc3339#appendix-C — year zero leap year edge case",
"data": "0000-02-29",
"valid": true
},
{
"description": "century year 0100 is not a leap year",
"comment": "https://www.rfc-editor.org/rfc/rfc3339#appendix-C — 100 % 100 == 0 but 100 % 400 != 0",
"data": "0100-02-29",
"valid": false
},
{
"description": "century year 0400 is a leap year",
"comment": "https://www.rfc-editor.org/rfc/rfc3339#appendix-C — 400-year cycle boundary",
"data": "0400-02-29",
"valid": true
},
{
"description": "century year 2100 is not a leap year",
"comment": "https://www.rfc-editor.org/rfc/rfc3339#appendix-C — future century year",
"data": "2100-02-29",
"valid": false
},
{
"description": "invalid: leading whitespace is not permitted",
"comment": "https://www.rfc-editor.org/rfc/rfc3339#section-5.6 — full-date grammar does not include whitespace",
"data": " 2024-01-15",
"valid": false
},
{
"description": "invalid: trailing whitespace is not permitted",
"comment": "https://www.rfc-editor.org/rfc/rfc3339#section-5.6 — full-date grammar does not include whitespace",
"data": "2024-01-15 ",
"valid": false
},
{
"description": "invalid: month 00 is not valid per date-month range 01-12",
"comment": "https://www.rfc-editor.org/rfc/rfc3339#section-5.6 — date-month = 2DIGIT ; 01-12",
"data": "2024-00-15",
"valid": false
},
{
"description": "invalid: day 00 is not valid per date-mday minimum of 01",
"comment": "https://www.rfc-editor.org/rfc/rfc3339#section-5.6 — date-mday = 2DIGIT ; 01-28/29/30/31",
"data": "2024-01-00",
"valid": false
}
]
}
Expand Down
48 changes: 48 additions & 0 deletions tests/draft2020-12/optional/format/date.json
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,54 @@
"description": "an invalid time string in date-time format",
"data": "2020-11-28T23:55:45Z",
"valid": false
},
{
"description": "year 0000 is a leap year (0 % 400 == 0)",
"comment": "https://www.rfc-editor.org/rfc/rfc3339#appendix-C — year zero leap year edge case",
"data": "0000-02-29",
"valid": true
},
{
"description": "century year 0100 is not a leap year",
"comment": "https://www.rfc-editor.org/rfc/rfc3339#appendix-C — 100 % 100 == 0 but 100 % 400 != 0",
"data": "0100-02-29",
"valid": false
},
{
"description": "century year 0400 is a leap year",
"comment": "https://www.rfc-editor.org/rfc/rfc3339#appendix-C — 400-year cycle boundary",
"data": "0400-02-29",
"valid": true
},
{
"description": "century year 2100 is not a leap year",
"comment": "https://www.rfc-editor.org/rfc/rfc3339#appendix-C — future century year",
"data": "2100-02-29",
"valid": false
},
{
"description": "invalid: leading whitespace is not permitted",
"comment": "https://www.rfc-editor.org/rfc/rfc3339#section-5.6 — full-date grammar does not include whitespace",
"data": " 2024-01-15",
"valid": false
},
{
"description": "invalid: trailing whitespace is not permitted",
"comment": "https://www.rfc-editor.org/rfc/rfc3339#section-5.6 — full-date grammar does not include whitespace",
"data": "2024-01-15 ",
"valid": false
},
{
"description": "invalid: month 00 is not valid per date-month range 01-12",
"comment": "https://www.rfc-editor.org/rfc/rfc3339#section-5.6 — date-month = 2DIGIT ; 01-12",
"data": "2024-00-15",
"valid": false
},
{
"description": "invalid: day 00 is not valid per date-mday minimum of 01",
"comment": "https://www.rfc-editor.org/rfc/rfc3339#section-5.6 — date-mday = 2DIGIT ; 01-28/29/30/31",
"data": "2024-01-00",
"valid": false
}
]
}
Expand Down
48 changes: 48 additions & 0 deletions tests/draft7/optional/format/date.json
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,54 @@
"description": "an invalid time string in date-time format",
"data": "2020-11-28T23:55:45Z",
"valid": false
},
{
"description": "year 0000 is a leap year (0 % 400 == 0)",
"comment": "https://www.rfc-editor.org/rfc/rfc3339#appendix-C — year zero leap year edge case",
"data": "0000-02-29",
"valid": true
},
{
"description": "century year 0100 is not a leap year",
"comment": "https://www.rfc-editor.org/rfc/rfc3339#appendix-C — 100 % 100 == 0 but 100 % 400 != 0",
"data": "0100-02-29",
"valid": false
},
{
"description": "century year 0400 is a leap year",
"comment": "https://www.rfc-editor.org/rfc/rfc3339#appendix-C — 400-year cycle boundary",
"data": "0400-02-29",
"valid": true
},
{
"description": "century year 2100 is not a leap year",
"comment": "https://www.rfc-editor.org/rfc/rfc3339#appendix-C — future century year",
"data": "2100-02-29",
"valid": false
},
{
"description": "invalid: leading whitespace is not permitted",
"comment": "https://www.rfc-editor.org/rfc/rfc3339#section-5.6 — full-date grammar does not include whitespace",
"data": " 2024-01-15",
"valid": false
},
{
"description": "invalid: trailing whitespace is not permitted",
"comment": "https://www.rfc-editor.org/rfc/rfc3339#section-5.6 — full-date grammar does not include whitespace",
"data": "2024-01-15 ",
"valid": false
},
{
"description": "invalid: month 00 is not valid per date-month range 01-12",
"comment": "https://www.rfc-editor.org/rfc/rfc3339#section-5.6 — date-month = 2DIGIT ; 01-12",
"data": "2024-00-15",
"valid": false
},
{
"description": "invalid: day 00 is not valid per date-mday minimum of 01",
"comment": "https://www.rfc-editor.org/rfc/rfc3339#section-5.6 — date-mday = 2DIGIT ; 01-28/29/30/31",
"data": "2024-01-00",
"valid": false
}
]
}
Expand Down
48 changes: 48 additions & 0 deletions tests/v1/format/date.json
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,54 @@
"description": "an invalid time string in date-time format",
"data": "2020-11-28T23:55:45Z",
"valid": false
},
{
"description": "year 0000 is a leap year (0 % 400 == 0)",
"comment": "https://www.rfc-editor.org/rfc/rfc3339#appendix-C — year zero leap year edge case",
"data": "0000-02-29",
"valid": true
},
{
"description": "century year 0100 is not a leap year",
"comment": "https://www.rfc-editor.org/rfc/rfc3339#appendix-C — 100 % 100 == 0 but 100 % 400 != 0",
"data": "0100-02-29",
"valid": false
},
{
"description": "century year 0400 is a leap year",
"comment": "https://www.rfc-editor.org/rfc/rfc3339#appendix-C — 400-year cycle boundary",
"data": "0400-02-29",
"valid": true
},
{
"description": "century year 2100 is not a leap year",
"comment": "https://www.rfc-editor.org/rfc/rfc3339#appendix-C — future century year",
"data": "2100-02-29",
"valid": false
},
{
"description": "invalid: leading whitespace is not permitted",
"comment": "https://www.rfc-editor.org/rfc/rfc3339#section-5.6 — full-date grammar does not include whitespace",
"data": " 2024-01-15",
"valid": false
},
{
"description": "invalid: trailing whitespace is not permitted",
"comment": "https://www.rfc-editor.org/rfc/rfc3339#section-5.6 — full-date grammar does not include whitespace",
"data": "2024-01-15 ",
"valid": false
},
{
"description": "invalid: month 00 is not valid per date-month range 01-12",
"comment": "https://www.rfc-editor.org/rfc/rfc3339#section-5.6 — date-month = 2DIGIT ; 01-12",
"data": "2024-00-15",
"valid": false
},
{
"description": "invalid: day 00 is not valid per date-mday minimum of 01",
"comment": "https://www.rfc-editor.org/rfc/rfc3339#section-5.6 — date-mday = 2DIGIT ; 01-28/29/30/31",
"data": "2024-01-00",
"valid": false
}
]
}
Expand Down
Loading