We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d733fb3 commit a3b8ff9Copy full SHA for a3b8ff9
1 file changed
jsonschema/_format.py
@@ -211,6 +211,12 @@ def is_uri(instance):
211
return True
212
return rfc3987.parse(instance, rule="URI")
213
214
+ @_checks_drafts(name="uri-reference", raises=ValueError)
215
+ def is_uri_reference(instance):
216
+ if not isinstance(instance, str_types):
217
+ return True
218
+ return rfc3987.parse(instance, rule="URI_reference")
219
+
220
221
try:
222
import strict_rfc3339
0 commit comments