summaryrefslogtreecommitdiff
path: root/tests/draft2019-09/optional/format/idn-email.json
blob: 552d106734b5f3487eddc8b5e1fdac355974d0d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
[
    {
        "description": "validation of an internationalized e-mail addresses",
        "schema": {"format": "idn-email"},
        "tests": [
            {
                "description": "a valid idn e-mail (example@example.test in Hangul)",
                "data": "실례@실례.테스트",
                "valid": true
            },
            {
                "description": "an invalid idn e-mail address",
                "data": "2962",
                "valid": false
            },
            {
                "description": "a valid e-mail address",
                "data": "joe.bloggs@example.com",
                "valid": true
            },
            {
                "description": "an invalid e-mail address",
                "data": "2962",
                "valid": false
            }
        ]
    }
]