Skip to content

feature request: validators.uri() #40

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

Closed
johnnybubonic opened this issue Nov 20, 2016 · 1 comment · Fixed by #353
Closed

feature request: validators.uri() #40

johnnybubonic opened this issue Nov 20, 2016 · 1 comment · Fixed by #353
Labels
enhancement Issue/PR: A new feature outdated Issue/PR: Open for more than 3 months

Comments

@johnnybubonic
Copy link

johnnybubonic commented Nov 20, 2016

it may be worth adding a separate method, validators.uri()

https://en.wikipedia.org/wiki/Uniform_Resource_Identifier

validators.url() could then be validators.uri.url() (while retaining validators.url() for backwards compatibility).

this would also allow file paths to be validated, e.g.

validators.uri.file('file:///tmp/file.txt')

IRC connections:

validators.uri.irc('irc://irc.freenode.org:6667/#somechannel

etc.

For official specification, see RFC3986 § 3.

@maaaaz
Copy link

maaaaz commented Oct 29, 2023

An URI validator would be great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issue/PR: A new feature outdated Issue/PR: Open for more than 3 months
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants