| •1 |
[ |
| 2 |
{ |
| 3 |
"description": "validation of e-mail addresses", |
| 4 |
"schema": { "format": "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 e-mail address", |
| 38 |
"data": "[email protected]", |
| 39 |
"valid": true |
| 40 |
}, |
| 41 |
{ |
| 42 |
"description": "an invalid e-mail address", |
| 43 |
"data": "2962", |
| 44 |
"valid": false |
| 45 |
}, |
| 46 |
{ |
| 47 |
"description": "tilde in local part is valid", |
| 48 |
"data": "[email protected]", |
| 49 |
"valid": true |
| 50 |
}, |
| 51 |
{ |
| 52 |
"description": "tilde before local part is valid", |
| 53 |
"data": "[email protected]", |
| 54 |
"valid": true |
| 55 |
}, |
| 56 |
{ |
| 57 |
"description": "tilde after local part is valid", |
| 58 |
"data": "[email protected]", |
| 59 |
"valid": true |
| 60 |
}, |
| 61 |
{ |
| 62 |
"description": "dot before local part is not valid", |
| 63 |
"data": "[email protected]", |
| 64 |
"valid": false |
| 65 |
}, |
| 66 |
{ |
| 67 |
"description": "dot after local part is not valid", |
| 68 |
"data": "[email protected]", |
| 69 |
"valid": false |
| 70 |
}, |
| 71 |
{ |
| 72 |
"description": "two separated dots inside local part are valid", |
| 73 |
"data": "[email protected]", |
| 74 |
"valid": true |
| 75 |
}, |
| 76 |
{ |
| 77 |
"description": "two subsequent dots inside local part are not valid", |
| 78 |
"data": "[email protected]", |
| 79 |
"valid": false |
| 80 |
} |
| 81 |
] |
| 82 |
} |
| 83 |
] |