cuelang.org/go@v0.13.0/encoding/jsonschema/testdata/external/tests/draft6/optional/format/email.json (about)

     1  [
     2  	{
     3  		"description": "validation of e-mail addresses",
     4  		"schema": {
     5  			"format": "email"
     6  		},
     7  		"tests": [
     8  			{
     9  				"description": "all string formats ignore integers",
    10  				"data": 12,
    11  				"valid": true
    12  			},
    13  			{
    14  				"description": "all string formats ignore floats",
    15  				"data": 13.7,
    16  				"valid": true
    17  			},
    18  			{
    19  				"description": "all string formats ignore objects",
    20  				"data": {},
    21  				"valid": true
    22  			},
    23  			{
    24  				"description": "all string formats ignore arrays",
    25  				"data": [],
    26  				"valid": true
    27  			},
    28  			{
    29  				"description": "all string formats ignore booleans",
    30  				"data": false,
    31  				"valid": true
    32  			},
    33  			{
    34  				"description": "all string formats ignore nulls",
    35  				"data": null,
    36  				"valid": true
    37  			},
    38  			{
    39  				"description": "a valid e-mail address",
    40  				"data": "joe.bloggs@example.com",
    41  				"valid": true
    42  			},
    43  			{
    44  				"description": "an invalid e-mail address",
    45  				"data": "2962",
    46  				"valid": false,
    47  				"skip": {
    48  					"v2": "unexpected success",
    49  					"v3": "unexpected success"
    50  				}
    51  			},
    52  			{
    53  				"description": "tilde in local part is valid",
    54  				"data": "te~st@example.com",
    55  				"valid": true
    56  			},
    57  			{
    58  				"description": "tilde before local part is valid",
    59  				"data": "~test@example.com",
    60  				"valid": true
    61  			},
    62  			{
    63  				"description": "tilde after local part is valid",
    64  				"data": "test~@example.com",
    65  				"valid": true
    66  			},
    67  			{
    68  				"description": "dot before local part is not valid",
    69  				"data": ".test@example.com",
    70  				"valid": false,
    71  				"skip": {
    72  					"v2": "unexpected success",
    73  					"v3": "unexpected success"
    74  				}
    75  			},
    76  			{
    77  				"description": "dot after local part is not valid",
    78  				"data": "test.@example.com",
    79  				"valid": false,
    80  				"skip": {
    81  					"v2": "unexpected success",
    82  					"v3": "unexpected success"
    83  				}
    84  			},
    85  			{
    86  				"description": "two separated dots inside local part are valid",
    87  				"data": "te.s.t@example.com",
    88  				"valid": true
    89  			},
    90  			{
    91  				"description": "two subsequent dots inside local part are not valid",
    92  				"data": "te..st@example.com",
    93  				"valid": false,
    94  				"skip": {
    95  					"v2": "unexpected success",
    96  					"v3": "unexpected success"
    97  				}
    98  			}
    99  		]
   100  	}
   101  ]