...

Text file src/github.com/qri-io/jsonschema/testdata/draft7/optional/format/ipv6.json

Documentation: github.com/qri-io/jsonschema/testdata/draft7/optional/format

     1[
     2    {
     3        "description": "validation of IPv6 addresses",
     4        "schema": {"format": "ipv6"},
     5        "tests": [
     6            {
     7                "description": "a valid IPv6 address",
     8                "data": "::1",
     9                "valid": true
    10            },
    11            {
    12                "description": "an IPv6 address with out-of-range values",
    13                "data": "12345::",
    14                "valid": false
    15            },
    16            {
    17                "description": "an IPv6 address with too many components",
    18                "data": "1:1:1:1:1:1:1:1:1:1:1:1:1:1:1:1",
    19                "valid": false
    20            },
    21            {
    22                "description": "an IPv6 address containing illegal characters",
    23                "data": "::laptop",
    24                "valid": false
    25            }
    26        ]
    27    }
    28]

View as plain text