summaryrefslogtreecommitdiff
path: root/json/tests/draft3/optional/format/ip-address.json
blob: c868bfb5e6b36ee27b0be7887cabefc1dc5e8667 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[
    {
        "description": "validation of IP addresses",
        "schema": {"format": "ip-address"},
        "tests": [
            {
                "description": "a valid IP address",
                "data": "192.168.0.1",
                "valid": true
            },
            {
                "description": "an IP address with too many components",
                "data": "127.0.0.0.1",
                "valid": false
            },
            {
                "description": "an IP address with out-of-range values",
                "data": "256.256.256.256",
                "valid": false
            }
        ]
    }
]