File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 34
34
"data" : " //foo.bar/?baz=qux#quux" ,
35
35
"valid" : false
36
36
},
37
+ {
38
+ "description" : " an invalid relative URI Reference" ,
39
+ "data" : " /abc" ,
40
+ "valid" : false
41
+ },
37
42
{
38
43
"description" : " an invalid URI" ,
39
44
"data" : " \\\\ WINDOWS\\ fileshare" ,
46
51
}
47
52
]
48
53
},
54
+ {
55
+ "description" : " validation of URI References" ,
56
+ "schema" : {"format" : " uri-reference" },
57
+ "tests" : [
58
+ {
59
+ "description" : " a valid URI" ,
60
+ "data" : " http://foo.bar/?baz=qux#quux" ,
61
+ "valid" : true
62
+ },
63
+ {
64
+ "description" : " a valid protocol-relative URI Reference" ,
65
+ "data" : " //foo.bar/?baz=qux#quux" ,
66
+ "valid" : true
67
+ },
68
+ {
69
+ "description" : " a valid relative URI Reference" ,
70
+ "data" : " /abc" ,
71
+ "valid" : true
72
+ },
73
+ {
74
+ "description" : " an invalid URI Reference" ,
75
+ "data" : " \\\\ WINDOWS\\ fileshare" ,
76
+ "valid" : false
77
+ },
78
+ {
79
+ "description" : " a valid URI Reference" ,
80
+ "data" : " abc" ,
81
+ "valid" : true
82
+ }
83
+ ]
84
+ },
49
85
{
50
86
"description" : " validation of e-mail addresses" ,
51
87
"schema" : {"format" : " email" },
You can’t perform that action at this time.
0 commit comments