Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

any way to validate only relative path? #109

Open
yezhengli-Mr9 opened this issue May 28, 2023 · 1 comment
Open

any way to validate only relative path? #109

yezhengli-Mr9 opened this issue May 28, 2023 · 1 comment

Comments

@yezhengli-Mr9
Copy link

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

@sigmavirus24
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants