From 549d8229f98afc5140749a953129e5a16660c810 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Sun, 24 May 2026 10:07:24 -0400 Subject: [PATCH] Upgrade the JSON Schema Test Suite to `584e550cf443b9f9b9f9a3f05fc0b2dbae178dfa` Signed-off-by: Juan Cruz Viotti --- DEPENDENCIES | 2 +- .../tests/draft2019-09/minProperties.json | 10 ++ .../draft2019-09/optional/format/date.json | 133 +++++++++++++++--- .../optional/format/hostname.json | 12 +- .../tests/draft2019-09/propertyNames.json | 10 ++ .../tests/draft2020-12/minProperties.json | 10 ++ .../draft2020-12/optional/format/date.json | 133 +++++++++++++++--- .../optional/format/hostname.json | 12 +- .../tests/draft2020-12/propertyNames.json | 10 ++ .../tests/draft4/minProperties.json | 10 ++ .../tests/draft6/minProperties.json | 10 ++ .../tests/draft6/propertyNames.json | 10 ++ .../tests/draft7/minProperties.json | 10 ++ .../tests/draft7/optional/format/date.json | 133 +++++++++++++++--- .../draft7/optional/format/hostname.json | 12 +- .../tests/draft7/propertyNames.json | 10 ++ .../tests/v1/format/date.json | 133 +++++++++++++++--- .../tests/v1/format/hostname.json | 12 +- .../tests/v1/minProperties.json | 10 ++ .../tests/v1/propertyNames.json | 10 ++ 20 files changed, 587 insertions(+), 105 deletions(-) diff --git a/DEPENDENCIES b/DEPENDENCIES index 30df177fd..fffb0edac 100644 --- a/DEPENDENCIES +++ b/DEPENDENCIES @@ -1,6 +1,6 @@ vendorpull https://github.com/sourcemeta/vendorpull 1dcbac42809cf87cb5b045106b863e17ad84ba02 core https://github.com/sourcemeta/core 8018e9d85ef6fc0fd9ccd11c2ae438789214b00a -jsonschema-test-suite https://github.com/json-schema-org/JSON-Schema-Test-Suite c7257e92580678a086f0b9243a1903ed88bd27f7 +jsonschema-test-suite https://github.com/json-schema-org/JSON-Schema-Test-Suite 584e550cf443b9f9b9f9a3f05fc0b2dbae178dfa jsonschema-2020-12 https://github.com/json-schema-org/json-schema-spec 769daad75a9553562333a8937a187741cb708c72 jsonschema-2019-09 https://github.com/json-schema-org/json-schema-spec 41014ea723120ce70b314d72f863c6929d9f3cfd jsonschema-draft7 https://github.com/json-schema-org/json-schema-spec 567f768506aaa33a38e552c85bf0586029ef1b32 diff --git a/vendor/jsonschema-test-suite/tests/draft2019-09/minProperties.json b/vendor/jsonschema-test-suite/tests/draft2019-09/minProperties.json index 20e01a9e2..48a2a59c3 100644 --- a/vendor/jsonschema-test-suite/tests/draft2019-09/minProperties.json +++ b/vendor/jsonschema-test-suite/tests/draft2019-09/minProperties.json @@ -35,6 +35,16 @@ "description": "ignores other non-objects", "data": 12, "valid": true + }, + { + "description": "ignores null", + "data": null, + "valid": true + }, + { + "description": "ignores booleans", + "data": true, + "valid": true } ] }, diff --git a/vendor/jsonschema-test-suite/tests/draft2019-09/optional/format/date.json b/vendor/jsonschema-test-suite/tests/draft2019-09/optional/format/date.json index 1ba5d9caa..77b5a8bf3 100644 --- a/vendor/jsonschema-test-suite/tests/draft2019-09/optional/format/date.json +++ b/vendor/jsonschema-test-suite/tests/draft2019-09/optional/format/date.json @@ -56,16 +56,6 @@ "data": "2021-02-28", "valid": true }, - { - "description": "a invalid date string with 29 days in February (normal)", - "data": "2021-02-29", - "valid": false - }, - { - "description": "a valid date string with 29 days in February (leap)", - "data": "2020-02-29", - "valid": true - }, { "description": "a invalid date string with 30 days in February (leap)", "data": "2020-02-30", @@ -171,11 +161,6 @@ "data": "2020-12-32", "valid": false }, - { - "description": "a invalid date string with invalid month", - "data": "2020-13-01", - "valid": false - }, { "description": "an invalid date string", "data": "06/19/1963", @@ -201,11 +186,6 @@ "data": "1998-13-01", "valid": false }, - { - "description": "invalid month-day combination", - "data": "1998-04-31", - "valid": false - }, { "description": "2021 is not a leap year", "data": "2021-02-29", @@ -245,6 +225,119 @@ "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 + }, + { + "description": "invalid: empty string", + "data": "", + "valid": false + }, + { + "description": "invalid: embedded whitespace between year and month", + "data": "2020 -01-01", + "valid": false + }, + { + "description": "invalid: trailing character after valid full-date", + "data": "2020-01-01X", + "valid": false + }, + { + "description": "invalid: trailing Z after full-date", + "data": "2020-01-01Z", + "valid": false + }, + { + "description": "invalid: full-date followed by space and time component", + "data": "2020-01-01 00:00:00Z", + "valid": false + }, + { + "description": "valid: four-digit year 0001", + "data": "0001-01-01", + "valid": true + }, + { + "description": "invalid: two-digit year (N-2 digits)", + "data": "20-01-01", + "valid": false + }, + { + "description": "invalid: three-digit year (N-1 digits)", + "data": "998-01-01", + "valid": false + }, + { + "description": "invalid: five-digit year (N+1 digits)", + "data": "12020-01-01", + "valid": false + }, + { + "description": "invalid: positive sign prefix on year", + "data": "+2020-01-01", + "valid": false + }, + { + "description": "invalid: negative sign prefix on year", + "data": "-2020-01-01", + "valid": false + }, + { + "description": "invalid: non-ASCII Bengali digit in year field", + "data": "২020-01-01", + "valid": false + }, + { + "description": "invalid: alphabetic characters in year field", + "data": "YYYY-01-01", + "valid": false } ] } diff --git a/vendor/jsonschema-test-suite/tests/draft2019-09/optional/format/hostname.json b/vendor/jsonschema-test-suite/tests/draft2019-09/optional/format/hostname.json index 46304bc34..1c7fce1b4 100644 --- a/vendor/jsonschema-test-suite/tests/draft2019-09/optional/format/hostname.json +++ b/vendor/jsonschema-test-suite/tests/draft2019-09/optional/format/hostname.json @@ -101,12 +101,6 @@ "data": "hostname-", "valid": false }, - { - "description": "contains \"--\" in the 3rd and 4th position", - "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.1 https://tools.ietf.org/html/rfc5890#section-2.3.2.1", - "data": "XN--aa---o47jg78q", - "valid": false - }, { "description": "contains underscore", "data": "host_name", @@ -355,6 +349,12 @@ "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.1 https://www.w3.org/TR/alreq/#h_disjoining_enforcement", "data": "xn--ngba5hb2804a", "valid": true + }, + { + "description": "contains \"--\" in the 3rd and 4th position", + "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.1 https://tools.ietf.org/html/rfc5890#section-2.3.2.1", + "data": "XN--aa---o47jg78q", + "valid": false } ] } diff --git a/vendor/jsonschema-test-suite/tests/draft2019-09/propertyNames.json b/vendor/jsonschema-test-suite/tests/draft2019-09/propertyNames.json index 3b2bb23bb..f4a7684d1 100644 --- a/vendor/jsonschema-test-suite/tests/draft2019-09/propertyNames.json +++ b/vendor/jsonschema-test-suite/tests/draft2019-09/propertyNames.json @@ -41,6 +41,16 @@ "description": "ignores other non-objects", "data": 12, "valid": true + }, + { + "description": "ignores null", + "data": null, + "valid": true + }, + { + "description": "ignores booleans", + "data": true, + "valid": true } ] }, diff --git a/vendor/jsonschema-test-suite/tests/draft2020-12/minProperties.json b/vendor/jsonschema-test-suite/tests/draft2020-12/minProperties.json index a753ad35f..12587a5f8 100644 --- a/vendor/jsonschema-test-suite/tests/draft2020-12/minProperties.json +++ b/vendor/jsonschema-test-suite/tests/draft2020-12/minProperties.json @@ -35,6 +35,16 @@ "description": "ignores other non-objects", "data": 12, "valid": true + }, + { + "description": "ignores null", + "data": null, + "valid": true + }, + { + "description": "ignores booleans", + "data": true, + "valid": true } ] }, diff --git a/vendor/jsonschema-test-suite/tests/draft2020-12/optional/format/date.json b/vendor/jsonschema-test-suite/tests/draft2020-12/optional/format/date.json index 01731c34a..97dbc3ec3 100644 --- a/vendor/jsonschema-test-suite/tests/draft2020-12/optional/format/date.json +++ b/vendor/jsonschema-test-suite/tests/draft2020-12/optional/format/date.json @@ -56,16 +56,6 @@ "data": "2021-02-28", "valid": true }, - { - "description": "a invalid date string with 29 days in February (normal)", - "data": "2021-02-29", - "valid": false - }, - { - "description": "a valid date string with 29 days in February (leap)", - "data": "2020-02-29", - "valid": true - }, { "description": "a invalid date string with 30 days in February (leap)", "data": "2020-02-30", @@ -171,11 +161,6 @@ "data": "2020-12-32", "valid": false }, - { - "description": "a invalid date string with invalid month", - "data": "2020-13-01", - "valid": false - }, { "description": "an invalid date string", "data": "06/19/1963", @@ -201,11 +186,6 @@ "data": "1998-13-01", "valid": false }, - { - "description": "invalid month-day combination", - "data": "1998-04-31", - "valid": false - }, { "description": "2021 is not a leap year", "data": "2021-02-29", @@ -245,6 +225,119 @@ "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 + }, + { + "description": "invalid: empty string", + "data": "", + "valid": false + }, + { + "description": "invalid: embedded whitespace between year and month", + "data": "2020 -01-01", + "valid": false + }, + { + "description": "invalid: trailing character after valid full-date", + "data": "2020-01-01X", + "valid": false + }, + { + "description": "invalid: trailing Z after full-date", + "data": "2020-01-01Z", + "valid": false + }, + { + "description": "invalid: full-date followed by space and time component", + "data": "2020-01-01 00:00:00Z", + "valid": false + }, + { + "description": "valid: four-digit year 0001", + "data": "0001-01-01", + "valid": true + }, + { + "description": "invalid: two-digit year (N-2 digits)", + "data": "20-01-01", + "valid": false + }, + { + "description": "invalid: three-digit year (N-1 digits)", + "data": "998-01-01", + "valid": false + }, + { + "description": "invalid: five-digit year (N+1 digits)", + "data": "12020-01-01", + "valid": false + }, + { + "description": "invalid: positive sign prefix on year", + "data": "+2020-01-01", + "valid": false + }, + { + "description": "invalid: negative sign prefix on year", + "data": "-2020-01-01", + "valid": false + }, + { + "description": "invalid: non-ASCII Bengali digit in year field", + "data": "২020-01-01", + "valid": false + }, + { + "description": "invalid: alphabetic characters in year field", + "data": "YYYY-01-01", + "valid": false } ] } diff --git a/vendor/jsonschema-test-suite/tests/draft2020-12/optional/format/hostname.json b/vendor/jsonschema-test-suite/tests/draft2020-12/optional/format/hostname.json index 511995ae8..8d721d92a 100644 --- a/vendor/jsonschema-test-suite/tests/draft2020-12/optional/format/hostname.json +++ b/vendor/jsonschema-test-suite/tests/draft2020-12/optional/format/hostname.json @@ -101,12 +101,6 @@ "data": "hostname-", "valid": false }, - { - "description": "contains \"--\" in the 3rd and 4th position", - "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.1 https://tools.ietf.org/html/rfc5890#section-2.3.2.1", - "data": "XN--aa---o47jg78q", - "valid": false - }, { "description": "contains underscore", "data": "host_name", @@ -355,6 +349,12 @@ "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.1 https://www.w3.org/TR/alreq/#h_disjoining_enforcement", "data": "xn--ngba5hb2804a", "valid": true + }, + { + "description": "contains \"--\" in the 3rd and 4th position", + "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.1 https://tools.ietf.org/html/rfc5890#section-2.3.2.1", + "data": "XN--aa---o47jg78q", + "valid": false } ] } diff --git a/vendor/jsonschema-test-suite/tests/draft2020-12/propertyNames.json b/vendor/jsonschema-test-suite/tests/draft2020-12/propertyNames.json index b4780088a..84ca2b84e 100644 --- a/vendor/jsonschema-test-suite/tests/draft2020-12/propertyNames.json +++ b/vendor/jsonschema-test-suite/tests/draft2020-12/propertyNames.json @@ -41,6 +41,16 @@ "description": "ignores other non-objects", "data": 12, "valid": true + }, + { + "description": "ignores null", + "data": null, + "valid": true + }, + { + "description": "ignores booleans", + "data": true, + "valid": true } ] }, diff --git a/vendor/jsonschema-test-suite/tests/draft4/minProperties.json b/vendor/jsonschema-test-suite/tests/draft4/minProperties.json index 49a0726e0..ca473c02c 100644 --- a/vendor/jsonschema-test-suite/tests/draft4/minProperties.json +++ b/vendor/jsonschema-test-suite/tests/draft4/minProperties.json @@ -32,6 +32,16 @@ "description": "ignores other non-objects", "data": 12, "valid": true + }, + { + "description": "ignores null", + "data": null, + "valid": true + }, + { + "description": "ignores booleans", + "data": true, + "valid": true } ] } diff --git a/vendor/jsonschema-test-suite/tests/draft6/minProperties.json b/vendor/jsonschema-test-suite/tests/draft6/minProperties.json index 9f74f7891..416e02010 100644 --- a/vendor/jsonschema-test-suite/tests/draft6/minProperties.json +++ b/vendor/jsonschema-test-suite/tests/draft6/minProperties.json @@ -32,6 +32,16 @@ "description": "ignores other non-objects", "data": 12, "valid": true + }, + { + "description": "ignores null", + "data": null, + "valid": true + }, + { + "description": "ignores booleans", + "data": true, + "valid": true } ] }, diff --git a/vendor/jsonschema-test-suite/tests/draft6/propertyNames.json b/vendor/jsonschema-test-suite/tests/draft6/propertyNames.json index 7c7b80006..b86564310 100644 --- a/vendor/jsonschema-test-suite/tests/draft6/propertyNames.json +++ b/vendor/jsonschema-test-suite/tests/draft6/propertyNames.json @@ -40,6 +40,16 @@ "description": "ignores other non-objects", "data": 12, "valid": true + }, + { + "description": "ignores null", + "data": null, + "valid": true + }, + { + "description": "ignores booleans", + "data": true, + "valid": true } ] }, diff --git a/vendor/jsonschema-test-suite/tests/draft7/minProperties.json b/vendor/jsonschema-test-suite/tests/draft7/minProperties.json index 9f74f7891..416e02010 100644 --- a/vendor/jsonschema-test-suite/tests/draft7/minProperties.json +++ b/vendor/jsonschema-test-suite/tests/draft7/minProperties.json @@ -32,6 +32,16 @@ "description": "ignores other non-objects", "data": 12, "valid": true + }, + { + "description": "ignores null", + "data": null, + "valid": true + }, + { + "description": "ignores booleans", + "data": true, + "valid": true } ] }, diff --git a/vendor/jsonschema-test-suite/tests/draft7/optional/format/date.json b/vendor/jsonschema-test-suite/tests/draft7/optional/format/date.json index 2cfdcf3f1..f89098335 100644 --- a/vendor/jsonschema-test-suite/tests/draft7/optional/format/date.json +++ b/vendor/jsonschema-test-suite/tests/draft7/optional/format/date.json @@ -53,16 +53,6 @@ "data": "2021-02-28", "valid": true }, - { - "description": "a invalid date string with 29 days in February (normal)", - "data": "2021-02-29", - "valid": false - }, - { - "description": "a valid date string with 29 days in February (leap)", - "data": "2020-02-29", - "valid": true - }, { "description": "a invalid date string with 30 days in February (leap)", "data": "2020-02-30", @@ -168,11 +158,6 @@ "data": "2020-12-32", "valid": false }, - { - "description": "a invalid date string with invalid month", - "data": "2020-13-01", - "valid": false - }, { "description": "an invalid date string", "data": "06/19/1963", @@ -198,11 +183,6 @@ "data": "1998-13-01", "valid": false }, - { - "description": "invalid month-day combination", - "data": "1998-04-31", - "valid": false - }, { "description": "2021 is not a leap year", "data": "2021-02-29", @@ -242,6 +222,119 @@ "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 + }, + { + "description": "invalid: empty string", + "data": "", + "valid": false + }, + { + "description": "invalid: embedded whitespace between year and month", + "data": "2020 -01-01", + "valid": false + }, + { + "description": "invalid: trailing character after valid full-date", + "data": "2020-01-01X", + "valid": false + }, + { + "description": "invalid: trailing Z after full-date", + "data": "2020-01-01Z", + "valid": false + }, + { + "description": "invalid: full-date followed by space and time component", + "data": "2020-01-01 00:00:00Z", + "valid": false + }, + { + "description": "valid: four-digit year 0001", + "data": "0001-01-01", + "valid": true + }, + { + "description": "invalid: two-digit year (N-2 digits)", + "data": "20-01-01", + "valid": false + }, + { + "description": "invalid: three-digit year (N-1 digits)", + "data": "998-01-01", + "valid": false + }, + { + "description": "invalid: five-digit year (N+1 digits)", + "data": "12020-01-01", + "valid": false + }, + { + "description": "invalid: positive sign prefix on year", + "data": "+2020-01-01", + "valid": false + }, + { + "description": "invalid: negative sign prefix on year", + "data": "-2020-01-01", + "valid": false + }, + { + "description": "invalid: non-ASCII Bengali digit in year field", + "data": "২020-01-01", + "valid": false + }, + { + "description": "invalid: alphabetic characters in year field", + "data": "YYYY-01-01", + "valid": false } ] } diff --git a/vendor/jsonschema-test-suite/tests/draft7/optional/format/hostname.json b/vendor/jsonschema-test-suite/tests/draft7/optional/format/hostname.json index 32e103d1b..d9da0fccd 100644 --- a/vendor/jsonschema-test-suite/tests/draft7/optional/format/hostname.json +++ b/vendor/jsonschema-test-suite/tests/draft7/optional/format/hostname.json @@ -98,12 +98,6 @@ "data": "hostname-", "valid": false }, - { - "description": "contains \"--\" in the 3rd and 4th position", - "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.1 https://tools.ietf.org/html/rfc5890#section-2.3.2.1", - "data": "XN--aa---o47jg78q", - "valid": false - }, { "description": "contains underscore", "data": "host_name", @@ -349,6 +343,12 @@ "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.1 https://www.w3.org/TR/alreq/#h_disjoining_enforcement", "data": "xn--ngba5hb2804a", "valid": true + }, + { + "description": "contains \"--\" in the 3rd and 4th position", + "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.1 https://tools.ietf.org/html/rfc5890#section-2.3.2.1", + "data": "XN--aa---o47jg78q", + "valid": false } ] } diff --git a/vendor/jsonschema-test-suite/tests/draft7/propertyNames.json b/vendor/jsonschema-test-suite/tests/draft7/propertyNames.json index 7c7b80006..b86564310 100644 --- a/vendor/jsonschema-test-suite/tests/draft7/propertyNames.json +++ b/vendor/jsonschema-test-suite/tests/draft7/propertyNames.json @@ -40,6 +40,16 @@ "description": "ignores other non-objects", "data": 12, "valid": true + }, + { + "description": "ignores null", + "data": null, + "valid": true + }, + { + "description": "ignores booleans", + "data": true, + "valid": true } ] }, diff --git a/vendor/jsonschema-test-suite/tests/v1/format/date.json b/vendor/jsonschema-test-suite/tests/v1/format/date.json index f120d37e1..4bfc79a8c 100644 --- a/vendor/jsonschema-test-suite/tests/v1/format/date.json +++ b/vendor/jsonschema-test-suite/tests/v1/format/date.json @@ -56,16 +56,6 @@ "data": "2021-02-28", "valid": true }, - { - "description": "a invalid date string with 29 days in February (normal)", - "data": "2021-02-29", - "valid": false - }, - { - "description": "a valid date string with 29 days in February (leap)", - "data": "2020-02-29", - "valid": true - }, { "description": "a invalid date string with 30 days in February (leap)", "data": "2020-02-30", @@ -171,11 +161,6 @@ "data": "2020-12-32", "valid": false }, - { - "description": "a invalid date string with invalid month", - "data": "2020-13-01", - "valid": false - }, { "description": "an invalid date string", "data": "06/19/1963", @@ -201,11 +186,6 @@ "data": "1998-13-01", "valid": false }, - { - "description": "invalid month-day combination", - "data": "1998-04-31", - "valid": false - }, { "description": "2021 is not a leap year", "data": "2021-02-29", @@ -245,6 +225,119 @@ "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 + }, + { + "description": "invalid: empty string", + "data": "", + "valid": false + }, + { + "description": "invalid: embedded whitespace between year and month", + "data": "2020 -01-01", + "valid": false + }, + { + "description": "invalid: trailing character after valid full-date", + "data": "2020-01-01X", + "valid": false + }, + { + "description": "invalid: trailing Z after full-date", + "data": "2020-01-01Z", + "valid": false + }, + { + "description": "invalid: full-date followed by space and time component", + "data": "2020-01-01 00:00:00Z", + "valid": false + }, + { + "description": "valid: four-digit year 0001", + "data": "0001-01-01", + "valid": true + }, + { + "description": "invalid: two-digit year (N-2 digits)", + "data": "20-01-01", + "valid": false + }, + { + "description": "invalid: three-digit year (N-1 digits)", + "data": "998-01-01", + "valid": false + }, + { + "description": "invalid: five-digit year (N+1 digits)", + "data": "12020-01-01", + "valid": false + }, + { + "description": "invalid: positive sign prefix on year", + "data": "+2020-01-01", + "valid": false + }, + { + "description": "invalid: negative sign prefix on year", + "data": "-2020-01-01", + "valid": false + }, + { + "description": "invalid: non-ASCII Bengali digit in year field", + "data": "২020-01-01", + "valid": false + }, + { + "description": "invalid: alphabetic characters in year field", + "data": "YYYY-01-01", + "valid": false } ] } diff --git a/vendor/jsonschema-test-suite/tests/v1/format/hostname.json b/vendor/jsonschema-test-suite/tests/v1/format/hostname.json index df2da2727..a92c33f52 100644 --- a/vendor/jsonschema-test-suite/tests/v1/format/hostname.json +++ b/vendor/jsonschema-test-suite/tests/v1/format/hostname.json @@ -101,12 +101,6 @@ "data": "hostname-", "valid": false }, - { - "description": "contains \"--\" in the 3rd and 4th position", - "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.1 https://tools.ietf.org/html/rfc5890#section-2.3.2.1", - "data": "XN--aa---o47jg78q", - "valid": false - }, { "description": "contains underscore", "data": "host_name", @@ -355,6 +349,12 @@ "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.1 https://www.w3.org/TR/alreq/#h_disjoining_enforcement", "data": "xn--ngba5hb2804a", "valid": true + }, + { + "description": "contains \"--\" in the 3rd and 4th position", + "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.1 https://tools.ietf.org/html/rfc5890#section-2.3.2.1", + "data": "XN--aa---o47jg78q", + "valid": false } ] } diff --git a/vendor/jsonschema-test-suite/tests/v1/minProperties.json b/vendor/jsonschema-test-suite/tests/v1/minProperties.json index 6e29f2b09..0ef0c1a18 100644 --- a/vendor/jsonschema-test-suite/tests/v1/minProperties.json +++ b/vendor/jsonschema-test-suite/tests/v1/minProperties.json @@ -35,6 +35,16 @@ "description": "ignores other non-objects", "data": 12, "valid": true + }, + { + "description": "ignores null", + "data": null, + "valid": true + }, + { + "description": "ignores booleans", + "data": true, + "valid": true } ] }, diff --git a/vendor/jsonschema-test-suite/tests/v1/propertyNames.json b/vendor/jsonschema-test-suite/tests/v1/propertyNames.json index 0fb85e4f4..7ad3152cc 100644 --- a/vendor/jsonschema-test-suite/tests/v1/propertyNames.json +++ b/vendor/jsonschema-test-suite/tests/v1/propertyNames.json @@ -41,6 +41,16 @@ "description": "ignores other non-objects", "data": 12, "valid": true + }, + { + "description": "ignores null", + "data": null, + "valid": true + }, + { + "description": "ignores booleans", + "data": true, + "valid": true } ] },