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

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