grape
https://github.com/intridea/grape
Ruby
An opinionated framework for creating REST-like APIs in Ruby.
Grape::Validations::ParamsScope#coerce_type
Add type coercion validation to this scope, if any has been specified. This validation has special handling since it is composited from more than one +requires+/+optional+ parameter, and needs to be run before most other validations.
Edit
git clone [email protected]:intridea/grape.git
cd grape
open lib/grape/validations/params_scope.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Grape--Validations--ParamsScope-coerce_type-for-pr
# Commit to gitgit add lib/grape/validations/params_scope.rbgit commit -m "better docs for Grape::Validations::ParamsScope#coerce_type"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Grape--Validations--ParamsScope-coerce_type-for-pr
hub pull-request
# Celebrate!