...

Text file src/github.com/qri-io/jsonschema/testdata/draft2019-09/optional/format/uri-template.json

Documentation: github.com/qri-io/jsonschema/testdata/draft2019-09/optional/format

     1[
     2    {
     3        "description": "format: uri-template",
     4        "schema": {"format": "uri-template"},
     5        "tests": [
     6            {
     7                "description": "a valid uri-template",
     8                "data": "http://example.com/dictionary/{term:1}/{term}",
     9                "valid": true
    10            },
    11            {
    12                "description": "an invalid uri-template",
    13                "data": "http://example.com/dictionary/{term:1}/{term",
    14                "valid": false
    15            },
    16            {
    17                "description": "a valid uri-template without variables",
    18                "data": "http://example.com/dictionary",
    19                "valid": true
    20            },
    21            {
    22                "description": "a valid relative uri-template",
    23                "data": "dictionary/{term:1}/{term}",
    24                "valid": true
    25            }
    26        ]
    27    }
    28]

View as plain text