| 1 |
[ |
| 2 |
{ |
| 3 |
"description": "validation of an internationalized e-mail addresses", |
| 4 |
"schema": { "format": "idn-email" }, |
| 5 |
"tests": [ |
| 6 |
{ |
| 7 |
"description": "all string formats ignore integers", |
| 8 |
"data": 12, |
| 9 |
"valid": true |
| 10 |
}, |
| 11 |
{ |
| 12 |
"description": "all string formats ignore floats", |
| 13 |
"data": 13.7, |
| 14 |
"valid": true |
| 15 |
}, |
| 16 |
{ |
| 17 |
"description": "all string formats ignore objects", |
| 18 |
"data": {}, |
| 19 |
"valid": true |
| 20 |
}, |
| 21 |
{ |
| 22 |
"description": "all string formats ignore arrays", |
| 23 |
"data": [], |
| 24 |
"valid": true |
| 25 |
}, |
| 26 |
{ |
| 27 |
"description": "all string formats ignore booleans", |
| 28 |
"data": false, |
| 29 |
"valid": true |
| 30 |
}, |
| 31 |
{ |
| 32 |
"description": "all string formats ignore nulls", |
| 33 |
"data": null, |
| 34 |
"valid": true |
| 35 |
}, |
| 36 |
{ |
| 37 |
"description": "a valid idn e-mail ([email protected] in Hangul)", |
| 38 |
"data": "실례@실례.테스트", |
| 39 |
"valid": true |
| 40 |
}, |
| 41 |
{ |
| 42 |
"description": "an invalid e-mail/idn e-mail address", |
| 43 |
"data": "2962", |
| 44 |
"valid": false |
| 45 |
}, |
| 46 |
{ |
| 47 |
"description": "a valid e-mail address", |
| 48 |
"data": "[email protected]", |
| 49 |
"valid": true |
| 50 |
}, |
| 51 |
{ |
| 52 |
"description": "a non-ASCII local part with an ASCII domain is valid", |
| 53 |
"data": "δοκιμή@example.com", |
| 54 |
"valid": true |
| 55 |
}, |
| 56 |
{ |
| 57 |
"description": "a non-ASCII quoted local part is valid", |
| 58 |
"data": "\"δοκιμή\"@example.com", |
| 59 |
"valid": true |
| 60 |
}, |
| 61 |
{ |
| 62 |
"description": "a domain label that is not in Unicode NFC is valid", |
| 63 |
"data": "user@cafe\u0301.com", |
| 64 |
"valid": true |
| 65 |
}, |
| 66 |
{ |
| 67 |
"description": "a local part that is not in Unicode NFC is valid", |
| 68 |
"data": "cafe\[email protected]", |
| 69 |
"valid": true |
| 70 |
}, |
| 71 |
{ |
| 72 |
"description": "a C1 control in the local part is valid", |
| 73 |
"comment": "https://www.rfc-editor.org/rfc/rfc6531#section-3.3 atext =/ UTF8-non-ascii; https://www.rfc-editor.org/rfc/rfc3629#section-4 UTF8-2 admits U+0085", |
| 74 |
"data": "\[email protected]", |
| 75 |
"valid": true |
| 76 |
}, |
| 77 |
{ |
| 78 |
"description": "a noncharacter in the local part is valid", |
| 79 |
"comment": "https://www.rfc-editor.org/rfc/rfc6531#section-3.3 atext =/ UTF8-non-ascii; https://www.rfc-editor.org/rfc/rfc3629#section-4 UTF8-3 admits U+FFFF", |
| 80 |
"data": "\[email protected]", |
| 81 |
"valid": true |
| 82 |
}, |
| 83 |
{ |
| 84 |
"description": "a local part at the 64-octet limit is valid", |
| 85 |
"comment": "https://www.rfc-editor.org/rfc/rfc5321#section-4.5.3.1 every implementation must be able to receive a local part of 64 octets", |
| 86 |
"data": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa@example.com", |
| 87 |
"valid": true |
| 88 |
}, |
| 89 |
{ |
| 90 |
"description": "a fullwidth commercial at is not a local-part separator", |
| 91 |
"comment": "https://www.rfc-editor.org/rfc/rfc5321#section-4.1.2 Mailbox = Local-part \"@\" ( Domain / address-literal ) splits on U+0040, and any IDN mapping applies only to the domain that split produces, so U+FF20 cannot become the delimiter", |
| 92 |
"data": "user\uff20example.com", |
| 93 |
"valid": false |
| 94 |
}, |
| 95 |
{ |
| 96 |
"description": "a local part with a supplementary-plane character is valid", |
| 97 |
"comment": "https://www.rfc-editor.org/rfc/rfc6531#section-3.3 atext =/ UTF8-non-ascii, and https://www.rfc-editor.org/rfc/rfc3629#section-4 UTF8-4 covers U+10000 and above", |
| 98 |
"data": "\ud835\[email protected]", |
| 99 |
"valid": true |
| 100 |
} |
| 101 |
] |
| 102 |
} |
| 103 |
] |