You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
, andschemes: []
, without success. Any workarounds would also be appreciated.The text was updated successfully, but these errors were encountered: