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

feat: allow custom URL scheme validation #409

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

e3krisztian
Copy link

Enhances validators.url to allow

  • restricting the allowed schemes (e.g. to accept only https, and nothing else)
  • relaxing the allowed schemes to also accept less known schemes (e.g. ws, wss, ldap, ...)

This backward compatible change let's library users resolve the problematic cases requested/discussed in

Enhances `validators.url` to allow
- restricting the allowed schemes (e.g. to accept only https,
                                   and nothing else)
- relaxing the allowed schemes to also accept less known schemes
  (e.g. ws, wss, ldap, ...)
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

Successfully merging this pull request may close these issues.

1 participant