...
1[
2 {
3 "description": "validation of host names",
4 "schema": {"format": "hostname"},
5 "tests": [
6 {
7 "description": "a valid host name",
8 "data": "www.example.com",
9 "valid": true
10 },
11 {
12 "description": "a valid punycoded IDN hostname",
13 "data": "xn--4gbwdl.xn--wgbh1c",
14 "valid": true
15 },
16 {
17 "description": "a host name starting with an illegal character",
18 "data": "-a-host-name-that-starts-with--",
19 "valid": false
20 },
21 {
22 "description": "a host name containing illegal characters",
23 "data": "not_a_valid_host_name",
24 "valid": false
25 },
26 {
27 "description": "a host name with a component too long",
28 "data": "a-vvvvvvvvvvvvvvvveeeeeeeeeeeeeeeerrrrrrrrrrrrrrrryyyyyyyyyyyyyyyy-long-host-name-component",
29 "valid": false
30 }
31 ]
32 }
33]
View as plain text