We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I add this to my api.rb
use Goliath::Rack::Validation::CoerceValue, :key => 'url', :as => ValidUrl
And required this class /libs/valid_url.rb in my runner.rb.
class ValidUrl def coerce value, opts ={} raise Goliath::Rack::Validation::FailedCoerce.new([400, {}, "URL is invalid"]) end end
The exception is never thrown. Am I missing something else?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I add this to my api.rb
And required this class /libs/valid_url.rb in my runner.rb.
The exception is never thrown. Am I missing something else?
The text was updated successfully, but these errors were encountered: