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

     1  [
     2  	{
     3  		"description": "validation of e-mail addresses",
     4  		"schema": {
     5  			"$schema": "https://json-schema.org/draft/2019-09/schema",
     6  			"format": "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 e-mail address",
    41  				"data": "joe.bloggs@example.com",
    42  				"valid": true
    43  			},
    44  			{
    45  				"description": "an invalid e-mail address",
    46  				"data": "2962",
    47  				"valid": false,
    48  				"skip": {
    49  					"v2": "unexpected success",
    50  					"v3": "unexpected success"
    51  				}
    52  			},
    53  			{
    54  				"description": "tilde in local part is valid",
    55  				"data": "te~st@example.com",
    56  				"valid": true
    57  			},
    58  			{
    59  				"description": "tilde before local part is valid",
    60  				"data": "~test@example.com",
    61  				"valid": true
    62  			},
    63  			{
    64  				"description": "tilde after local part is valid",
    65  				"data": "test~@example.com",
    66  				"valid": true
    67  			},
    68  			{
    69  				"description": "dot before local part is not valid",
    70  				"data": ".test@example.com",
    71  				"valid": false,
    72  				"skip": {
    73  					"v2": "unexpected success",
    74  					"v3": "unexpected success"
    75  				}
    76  			},
    77  			{
    78  				"description": "dot after local part is not valid",
    79  				"data": "test.@example.com",
    80  				"valid": false,
    81  				"skip": {
    82  					"v2": "unexpected success",
    83  					"v3": "unexpected success"
    84  				}
    85  			},
    86  			{
    87  				"description": "two separated dots inside local part are valid",
    88  				"data": "te.s.t@example.com",
    89  				"valid": true
    90  			},
    91  			{
    92  				"description": "two subsequent dots inside local part are not valid",
    93  				"data": "te..st@example.com",
    94  				"valid": false,
    95  				"skip": {
    96  					"v2": "unexpected success",
    97  					"v3": "unexpected success"
    98  				}
    99  			}
   100  		]
   101  	}
   102  ]