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 3bc457e commit 8707a6cCopy full SHA for 8707a6c
protovalidate/internal/extra_func.py
@@ -161,11 +161,13 @@ def is_email(string: celtypes.Value) -> celpy.Result:
161
162
163
def is_uri(string: celtypes.Value) -> celpy.Result:
164
+ """is_uri validates whether string is a valid URI."""
165
valid = Uri(str(string)).uri()
166
return celtypes.BoolType(valid)
167
168
169
def is_uri_ref(string: celtypes.Value) -> celpy.Result:
170
+ """is_uri_reference validates whether string is a valid URI reference."""
171
valid = Uri(str(string)).uri_reference()
172
173
0 commit comments