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

     1  [
     2  	{
     3  		"description": "format: uri-template",
     4  		"schema": {
     5  			"format": "uri-template"
     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-template",
    40  				"data": "http://example.com/dictionary/{term:1}/{term}",
    41  				"valid": true
    42  			},
    43  			{
    44  				"description": "an invalid uri-template",
    45  				"data": "http://example.com/dictionary/{term:1}/{term",
    46  				"valid": false,
    47  				"skip": {
    48  					"v2": "unexpected success",
    49  					"v3": "unexpected success"
    50  				}
    51  			},
    52  			{
    53  				"description": "a valid uri-template without variables",
    54  				"data": "http://example.com/dictionary",
    55  				"valid": true
    56  			},
    57  			{
    58  				"description": "a valid relative uri-template",
    59  				"data": "dictionary/{term:1}/{term}",
    60  				"valid": true
    61  			}
    62  		]
    63  	}
    64  ]