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