cuelang.org/go@v0.13.0/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/uri-reference.json (about)

     1  [
     2  	{
     3  		"description": "validation of URI References",
     4  		"schema": {
     5  			"$schema": "https://json-schema.org/draft/2019-09/schema",
     6  			"format": "uri-reference"
     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 URI",
    41  				"data": "http://foo.bar/?baz=qux#quux",
    42  				"valid": true
    43  			},
    44  			{
    45  				"description": "a valid protocol-relative URI Reference",
    46  				"data": "//foo.bar/?baz=qux#quux",
    47  				"valid": true
    48  			},
    49  			{
    50  				"description": "a valid relative URI Reference",
    51  				"data": "/abc",
    52  				"valid": true
    53  			},
    54  			{
    55  				"description": "an invalid URI Reference",
    56  				"data": "\\\\WINDOWS\\fileshare",
    57  				"valid": false,
    58  				"skip": {
    59  					"v2": "unexpected success",
    60  					"v3": "unexpected success"
    61  				}
    62  			},
    63  			{
    64  				"description": "a valid URI Reference",
    65  				"data": "abc",
    66  				"valid": true
    67  			},
    68  			{
    69  				"description": "a valid URI fragment",
    70  				"data": "#fragment",
    71  				"valid": true
    72  			},
    73  			{
    74  				"description": "an invalid URI fragment",
    75  				"data": "#frag\\ment",
    76  				"valid": false,
    77  				"skip": {
    78  					"v2": "unexpected success",
    79  					"v3": "unexpected success"
    80  				}
    81  			}
    82  		]
    83  	}
    84  ]