Skip to content

Commit bcb06fb

Browse files
committed
Add URI edge cases to v1
2 parents 3930aea + 20f4897 commit bcb06fb

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

tests/v1/format/uri.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,36 @@
185185
"description": "invalid | character",
186186
"data": "https://example.org/foobar|.txt",
187187
"valid": false
188+
},
189+
{
190+
"description": "invalid percent-encoding with non-hex digits",
191+
"data": "http://example.com/%GG",
192+
"valid": false
193+
},
194+
{
195+
"description": "incomplete percent-encoding triplet",
196+
"data": "http://example.com/%A",
197+
"valid": false
198+
},
199+
{
200+
"description": "lone percent sign is invalid",
201+
"data": "http://example.com/%",
202+
"valid": false
203+
},
204+
{
205+
"description": "scheme must start with a letter",
206+
"data": "1http://example.com",
207+
"valid": false
208+
},
209+
{
210+
"description": "invalid character in scheme",
211+
"data": "ht_tp://example.com",
212+
"valid": false
213+
},
214+
{
215+
"description": "non-numeric port is invalid",
216+
"data": "http://example.com:abc/path",
217+
"valid": false
188218
}
189219
]
190220
}

0 commit comments

Comments
 (0)