summaryrefslogtreecommitdiff
path: root/tests/draft6/optional/format/uri-reference.json
blob: e4c9eef63cf3c5a38ec50d3f9f1b15494fb8888b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
[
    {
        "description": "validation of URI References",
        "schema": {"format": "uri-reference"},
        "tests": [
            {
                "description": "a valid URI",
                "data": "http://foo.bar/?baz=qux#quux",
                "valid": true
            },
            {
                "description": "a valid protocol-relative URI Reference",
                "data": "//foo.bar/?baz=qux#quux",
                "valid": true
            },
            {
                "description": "a valid relative URI Reference",
                "data": "/abc",
                "valid": true
            },
            {
                "description": "an invalid URI Reference",
                "data": "\\\\WINDOWS\\fileshare",
                "valid": false
            },
            {
                "description": "a valid URI Reference",
                "data": "abc",
                "valid": true
            },
            {
                "description": "a valid URI fragment",
                "data": "#fragment",
                "valid": true
            },
            {
                "description": "an invalid URI fragment",
                "data": "#frag\\ment",
                "valid": false
            }
        ]
    }
]