[ { "description": "validation of internationalized host names", "schema": { "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "idn-hostname" }, "skip": { "v3-roundtrip": "generation only supported in version https://json-schema.org/draft/2020-12/schema" }, "tests": [ { "description": "all string formats ignore integers", "data": 12, "valid": true, "skip": { "v3-roundtrip": "could not extract schema" } }, { "description": "all string formats ignore floats", "data": 13.7, "valid": true, "skip": { "v3-roundtrip": "could not extract schema" } }, { "description": "all string formats ignore objects", "data": {}, "valid": true, "skip": { "v3-roundtrip": "could not extract schema" } }, { "description": "all string formats ignore arrays", "data": [], "valid": true, "skip": { "v3-roundtrip": "could not extract schema" } }, { "description": "all string formats ignore booleans", "data": false, "valid": true, "skip": { "v3-roundtrip": "could not extract schema" } }, { "description": "all string formats ignore nulls", "data": null, "valid": true, "skip": { "v3-roundtrip": "could not extract schema" } }, { "description": "a valid host name (example.test in Hangul)", "data": "실례.테스트", "valid": true, "skip": { "v3-roundtrip": "could not extract schema" } }, { "description": "illegal first char U+302E Hangul single dot tone mark", "data": "〮실례.테스트", "valid": false, "skip": { "v3": "unexpected success", "v3-roundtrip": "could not extract schema" } }, { "description": "contains illegal char U+302E Hangul single dot tone mark", "data": "실〮례.테스트", "valid": false, "skip": { "v3": "unexpected success", "v3-roundtrip": "could not extract schema" } }, { "description": "a host name with a component too long", "data": "실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실례례테스트례례례례례례례례례례례례례례례례례테스트례례례례례례례례례례례례례례례례례례례테스트례례례례례례례례례례례례테스트례례실례.테스트", "valid": false, "skip": { "v3": "unexpected success", "v3-roundtrip": "could not extract schema" } }, { "description": "invalid label, correct Punycode", "comment": "https://tools.ietf.org/html/rfc5890#section-2.3.2.1 https://tools.ietf.org/html/rfc5891#section-4.4 https://tools.ietf.org/html/rfc3492#section-7.1", "data": "-\u003e $1.00 \u003c--", "valid": false, "skip": { "v3": "unexpected success", "v3-roundtrip": "could not extract schema" } }, { "description": "valid Chinese Punycode", "comment": "https://tools.ietf.org/html/rfc5890#section-2.3.2.1 https://tools.ietf.org/html/rfc5891#section-4.4", "data": "xn--ihqwcrb4cv8a8dqg056pqjye", "valid": true, "skip": { "v3-roundtrip": "could not extract schema" } }, { "description": "invalid Punycode", "comment": "https://tools.ietf.org/html/rfc5891#section-4.4 https://tools.ietf.org/html/rfc5890#section-2.3.2.1", "data": "xn--X", "valid": false, "skip": { "v3": "unexpected success", "v3-roundtrip": "could not extract schema" } }, { "description": "U-label 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, "skip": { "v3": "unexpected success", "v3-roundtrip": "could not extract schema" } }, { "description": "U-label starts with a dash", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.1", "data": "-hello", "valid": false, "skip": { "v3": "unexpected success", "v3-roundtrip": "could not extract schema" } }, { "description": "U-label ends with a dash", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.1", "data": "hello-", "valid": false, "skip": { "v3": "unexpected success", "v3-roundtrip": "could not extract schema" } }, { "description": "U-label starts and ends with a dash", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.1", "data": "-hello-", "valid": false, "skip": { "v3": "unexpected success", "v3-roundtrip": "could not extract schema" } }, { "description": "Begins with a Spacing Combining Mark", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.2", "data": "ःhello", "valid": false, "skip": { "v3": "unexpected success", "v3-roundtrip": "could not extract schema" } }, { "description": "Begins with a Nonspacing Mark", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.2", "data": "̀hello", "valid": false, "skip": { "v3": "unexpected success", "v3-roundtrip": "could not extract schema" } }, { "description": "Begins with an Enclosing Mark", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.2", "data": "҈hello", "valid": false, "skip": { "v3": "unexpected success", "v3-roundtrip": "could not extract schema" } }, { "description": "Exceptions that are PVALID, left-to-right chars", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.2 https://tools.ietf.org/html/rfc5892#section-2.6", "data": "ßς་〇", "valid": true, "skip": { "v3-roundtrip": "could not extract schema" } }, { "description": "Exceptions that are PVALID, right-to-left chars", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.2 https://tools.ietf.org/html/rfc5892#section-2.6", "data": "۽۾", "valid": true, "skip": { "v3-roundtrip": "could not extract schema" } }, { "description": "Exceptions that are DISALLOWED, right-to-left chars", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.2 https://tools.ietf.org/html/rfc5892#section-2.6", "data": "ـߺ", "valid": false, "skip": { "v3": "unexpected success", "v3-roundtrip": "could not extract schema" } }, { "description": "Exceptions that are DISALLOWED, left-to-right chars", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.2 https://tools.ietf.org/html/rfc5892#section-2.6 Note: The two combining marks (U+302E and U+302F) are in the middle and not at the start", "data": "〱〲〳〴〵〮〯〻", "valid": false, "skip": { "v3": "unexpected success", "v3-roundtrip": "could not extract schema" } }, { "description": "MIDDLE DOT with no preceding 'l'", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.3", "data": "a·l", "valid": false, "skip": { "v3": "unexpected success", "v3-roundtrip": "could not extract schema" } }, { "description": "MIDDLE DOT with nothing preceding", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.3", "data": "·l", "valid": false, "skip": { "v3": "unexpected success", "v3-roundtrip": "could not extract schema" } }, { "description": "MIDDLE DOT with no following 'l'", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.3", "data": "l·a", "valid": false, "skip": { "v3": "unexpected success", "v3-roundtrip": "could not extract schema" } }, { "description": "MIDDLE DOT with nothing following", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.3", "data": "l·", "valid": false, "skip": { "v3": "unexpected success", "v3-roundtrip": "could not extract schema" } }, { "description": "MIDDLE DOT with surrounding 'l's", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.3", "data": "l·l", "valid": true, "skip": { "v3-roundtrip": "could not extract schema" } }, { "description": "Greek KERAIA not followed by Greek", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.4", "data": "α͵S", "valid": false, "skip": { "v3": "unexpected success", "v3-roundtrip": "could not extract schema" } }, { "description": "Greek KERAIA not followed by anything", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.4", "data": "α͵", "valid": false, "skip": { "v3": "unexpected success", "v3-roundtrip": "could not extract schema" } }, { "description": "Greek KERAIA followed by Greek", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.4", "data": "α͵β", "valid": true, "skip": { "v3-roundtrip": "could not extract schema" } }, { "description": "Hebrew GERESH not preceded by Hebrew", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.5", "data": "A׳ב", "valid": false, "skip": { "v3": "unexpected success", "v3-roundtrip": "could not extract schema" } }, { "description": "Hebrew GERESH not preceded by anything", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.5", "data": "׳ב", "valid": false, "skip": { "v3": "unexpected success", "v3-roundtrip": "could not extract schema" } }, { "description": "Hebrew GERESH preceded by Hebrew", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.5", "data": "א׳ב", "valid": true, "skip": { "v3-roundtrip": "could not extract schema" } }, { "description": "Hebrew GERSHAYIM not preceded by Hebrew", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.6", "data": "A״ב", "valid": false, "skip": { "v3": "unexpected success", "v3-roundtrip": "could not extract schema" } }, { "description": "Hebrew GERSHAYIM not preceded by anything", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.6", "data": "״ב", "valid": false, "skip": { "v3": "unexpected success", "v3-roundtrip": "could not extract schema" } }, { "description": "Hebrew GERSHAYIM preceded by Hebrew", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.6", "data": "א״ב", "valid": true, "skip": { "v3-roundtrip": "could not extract schema" } }, { "description": "KATAKANA MIDDLE DOT with no Hiragana, Katakana, or Han", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.7", "data": "def・abc", "valid": false, "skip": { "v3": "unexpected success", "v3-roundtrip": "could not extract schema" } }, { "description": "KATAKANA MIDDLE DOT with no other characters", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.7", "data": "・", "valid": false, "skip": { "v3": "unexpected success", "v3-roundtrip": "could not extract schema" } }, { "description": "KATAKANA MIDDLE DOT with Hiragana", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.7", "data": "・ぁ", "valid": true, "skip": { "v3-roundtrip": "could not extract schema" } }, { "description": "KATAKANA MIDDLE DOT with Katakana", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.7", "data": "・ァ", "valid": true, "skip": { "v3-roundtrip": "could not extract schema" } }, { "description": "KATAKANA MIDDLE DOT with Han", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.7", "data": "・丈", "valid": true, "skip": { "v3-roundtrip": "could not extract schema" } }, { "description": "Arabic-Indic digits mixed with Extended Arabic-Indic digits", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.8", "data": "ب٠۰", "valid": false, "skip": { "v3": "unexpected success", "v3-roundtrip": "could not extract schema" } }, { "description": "Arabic-Indic digits not mixed with Extended Arabic-Indic digits", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.8", "data": "ب٠ب", "valid": true, "skip": { "v3-roundtrip": "could not extract schema" } }, { "description": "Extended Arabic-Indic digits not mixed with Arabic-Indic digits", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.9", "data": "۰0", "valid": true, "skip": { "v3-roundtrip": "could not extract schema" } }, { "description": "ZERO WIDTH JOINER not preceded by Virama", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.2 https://www.unicode.org/review/pr-37.pdf", "data": "क‍ष", "valid": false, "skip": { "v3": "unexpected success", "v3-roundtrip": "could not extract schema" } }, { "description": "ZERO WIDTH JOINER not preceded by anything", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.2 https://www.unicode.org/review/pr-37.pdf", "data": "‍ष", "valid": false, "skip": { "v3": "unexpected success", "v3-roundtrip": "could not extract schema" } }, { "description": "ZERO WIDTH JOINER preceded by Virama", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.2 https://www.unicode.org/review/pr-37.pdf", "data": "क्‍ष", "valid": true, "skip": { "v3-roundtrip": "could not extract schema" } }, { "description": "ZERO WIDTH NON-JOINER preceded by Virama", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.1", "data": "क्‌ष", "valid": true, "skip": { "v3-roundtrip": "could not extract schema" } }, { "description": "ZERO WIDTH NON-JOINER not preceded by Virama but matches regexp", "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": "بي‌بي", "valid": true, "skip": { "v3-roundtrip": "could not extract schema" } }, { "description": "single label", "data": "hostname", "valid": true, "skip": { "v3-roundtrip": "could not extract schema" } }, { "description": "single label with hyphen", "data": "host-name", "valid": true, "skip": { "v3-roundtrip": "could not extract schema" } }, { "description": "single label with digits", "data": "h0stn4me", "valid": true, "skip": { "v3-roundtrip": "could not extract schema" } }, { "description": "single label starting with digit", "data": "1host", "valid": true, "skip": { "v3-roundtrip": "could not extract schema" } }, { "description": "single label ending with digit", "data": "hostnam3", "valid": true, "skip": { "v3-roundtrip": "could not extract schema" } } ] } ]