| 1 |
[ |
| 2 |
{ |
| 3 |
"description": "validation of an internationalized e-mail addresses", |
| 4 |
"schema": { |
| 5 |
"$schema": "https://json-schema.org/draft/2020-12/schema", |
| 6 |
"format": "idn-email" |
| 7 |
}, |
| 8 |
"tests": [ |
| 9 |
{ |
| 10 |
"description": "all string formats ignore integers", |
| 11 |
"data": 12, |
| 12 |
"valid": true |
| 13 |
}, |
| 14 |
{ |
| 15 |
"description": "all string formats ignore floats", |
| 16 |
"data": 13.7, |
| 17 |
"valid": true |
| 18 |
}, |
| 19 |
{ |
| 20 |
"description": "all string formats ignore objects", |
| 21 |
"data": {}, |
| 22 |
"valid": true |
| 23 |
}, |
| 24 |
{ |
| 25 |
"description": "all string formats ignore arrays", |
| 26 |
"data": [], |
| 27 |
"valid": true |
| 28 |
}, |
| 29 |
{ |
| 30 |
"description": "all string formats ignore booleans", |
| 31 |
"data": false, |
| 32 |
"valid": true |
| 33 |
}, |
| 34 |
{ |
| 35 |
"description": "all string formats ignore nulls", |
| 36 |
"data": null, |
| 37 |
"valid": true |
| 38 |
}, |
| 39 |
{ |
| 40 |
"description": "a valid idn e-mail ([email protected] in Hangul)", |
| 41 |
"data": "실례@실례.테스트", |
| 42 |
"valid": true |
| 43 |
}, |
| 44 |
{ |
| 45 |
"description": "an invalid idn e-mail address", |
| 46 |
"data": "2962", |
| 47 |
"valid": false, |
| 48 |
"skip": { |
| 49 |
"v3": "unexpected success", |
| 50 |
"v3-roundtrip": "unexpected success" |
| 51 |
} |
| 52 |
}, |
| 53 |
{ |
| 54 |
"description": "a valid e-mail address", |
| 55 |
"data": "[email protected]", |
| 56 |
"valid": true |
| 57 |
}, |
| 58 |
{ |
| 59 |
"description": "an invalid e-mail address", |
| 60 |
"data": "2962", |
| 61 |
"valid": false, |
| 62 |
"skip": { |
| 63 |
"v3": "unexpected success", |
| 64 |
"v3-roundtrip": "unexpected success" |
| 65 |
} |
| 66 |
} |
| 67 |
] |
| 68 |
} |
| 69 |
] |