cuelang.org/go@v0.13.0/encoding/jsonschema/testdata/external/tests/draft7/optional/format/iri.json (about)

     1  [
     2  	{
     3  		"description": "validation of IRIs",
     4  		"schema": {
     5  			"format": "iri"
     6  		},
     7  		"tests": [
     8  			{
     9  				"description": "all string formats ignore integers",
    10  				"data": 12,
    11  				"valid": true
    12  			},
    13  			{
    14  				"description": "all string formats ignore floats",
    15  				"data": 13.7,
    16  				"valid": true
    17  			},
    18  			{
    19  				"description": "all string formats ignore objects",
    20  				"data": {},
    21  				"valid": true
    22  			},
    23  			{
    24  				"description": "all string formats ignore arrays",
    25  				"data": [],
    26  				"valid": true
    27  			},
    28  			{
    29  				"description": "all string formats ignore booleans",
    30  				"data": false,
    31  				"valid": true
    32  			},
    33  			{
    34  				"description": "all string formats ignore nulls",
    35  				"data": null,
    36  				"valid": true
    37  			},
    38  			{
    39  				"description": "a valid IRI with anchor tag",
    40  				"data": "http://ƒøø.ßår/?∂éœ=πîx#πîüx",
    41  				"valid": true
    42  			},
    43  			{
    44  				"description": "a valid IRI with anchor tag and parentheses",
    45  				"data": "http://ƒøø.com/blah_(wîkïpédiå)_blah#ßité-1",
    46  				"valid": true
    47  			},
    48  			{
    49  				"description": "a valid IRI with URL-encoded stuff",
    50  				"data": "http://ƒøø.ßår/?q=Test%20URL-encoded%20stuff",
    51  				"valid": true
    52  			},
    53  			{
    54  				"description": "a valid IRI with many special characters",
    55  				"data": "http://-.~_!$\u0026'()*+,;=:%40:80%2f::::::@example.com",
    56  				"valid": true
    57  			},
    58  			{
    59  				"description": "a valid IRI based on IPv6",
    60  				"data": "http://[2001:0db8:85a3:0000:0000:8a2e:0370:7334]",
    61  				"valid": true
    62  			},
    63  			{
    64  				"description": "an invalid IRI based on IPv6",
    65  				"data": "http://2001:0db8:85a3:0000:0000:8a2e:0370:7334",
    66  				"valid": false,
    67  				"skip": {
    68  					"v2": "unexpected success",
    69  					"v3": "unexpected success"
    70  				}
    71  			},
    72  			{
    73  				"description": "an invalid relative IRI Reference",
    74  				"data": "/abc",
    75  				"valid": false
    76  			},
    77  			{
    78  				"description": "an invalid IRI",
    79  				"data": "\\\\WINDOWS\\filëßåré",
    80  				"valid": false
    81  			},
    82  			{
    83  				"description": "an invalid IRI though valid IRI reference",
    84  				"data": "âππ",
    85  				"valid": false
    86  			}
    87  		]
    88  	}
    89  ]