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

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