rfc3986 icon indicating copy to clipboard operation
rfc3986 copied to clipboard

any way to validate only relative path?

Open yezhengli-Mr9 opened this issue 2 years ago • 1 comments

Any way to validate only relative path? For example, just check characters.

yezhengli-Mr9 avatar May 28 '23 03:05 yezhengli-Mr9

https://rfc3986.readthedocs.io/en/latest/api-ref/validators.html#rfc3986.validators.Validator.check_validity_of could be used with the value "path". I don't recall how the validation works but if it doesn't allow relative paths then that's a bug we should fix. Likely we want to add a way to specify whether something should be an absolute or relative path. But that's a later improvement that I'm not sure is urgently needed

sigmavirus24 avatar May 28 '23 18:05 sigmavirus24