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

Allow any scheme? #99

Open
gravitystorm opened this issue Apr 1, 2020 · 1 comment
Open

Allow any scheme? #99

gravitystorm opened this issue Apr 1, 2020 · 1 comment

Comments

@gravitystorm
Copy link

Is it possible to validate a url, without having to provide a pre-determined list of schemes?

The situation is that we are validating a :callback_url, for oauth applications registered on our site. Since the :callback_url can contain application-specific schemes (e.g. myapp://something), we don't know which schemes will be used and so we can't provide a list to the validator.

I've tried e.g. validates_url :callback, schemes: nil, and schemes: [], without success. Any workarounds would also be appreciated.

@mochetts
Copy link

I'm in the need of the same

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