...

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

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

     1[
     2    {
     3        "description": "validation of IRIs",
     4        "schema": {"format": "iri"},
     5        "tests": [
     6            {
     7                "description": "a valid IRI with anchor tag",
     8                "data": "http://ƒøø.ßår/?∂éœ=πîx#πîüx",
     9                "valid": true
    10            },
    11            {
    12                "description": "a valid IRI with anchor tag and parantheses",
    13                "data": "http://ƒøø.com/blah_(wîkïpédiå)_blah#ßité-1",
    14                "valid": true
    15            },
    16            {
    17                "description": "a valid IRI with URL-encoded stuff",
    18                "data": "http://ƒøø.ßår/?q=Test%20URL-encoded%20stuff",
    19                "valid": true
    20            },
    21            {
    22                "description": "a valid IRI with many special characters",
    23                "data": "http://-.~_!$&'()*+,;=:%40:80%2f::::::@example.com",
    24                "valid": true
    25            },
    26            {
    27                "description": "a valid IRI based on IPv6",
    28                "data": "http://[2001:0db8:85a3:0000:0000:8a2e:0370:7334]",
    29                "valid": true
    30            },
    31            {
    32                "description": "an invalid IRI based on IPv6",
    33                "data": "http://2001:0db8:85a3:0000:0000:8a2e:0370:7334",
    34                "valid": false
    35            },
    36            {
    37                "description": "an invalid relative IRI Reference",
    38                "data": "/abc",
    39                "valid": false
    40            },
    41            {
    42                "description": "an invalid IRI",
    43                "data": "\\\\WINDOWS\\filëßåré",
    44                "valid": false
    45            },
    46            {
    47                "description": "an invalid IRI though valid IRI reference",
    48                "data": "âππ",
    49                "valid": false
    50            }
    51        ]
    52    }
    53]

View as plain text