grape

https://github.com/intridea/grape

Ruby

An opinionated framework for creating REST-like APIs in Ruby.

Grape::Validations::Types.multiple?

Is the declared type in fact an array of multiple allowed types?
For example the declaration +types: [Integer,String]+ will attempt
first to coerce given values to integer, but will also accept any
other string.

Source | Google | Stack overflow

Edit

git clone [email protected]:intridea/grape.git

cd grape

open lib/grape/validations/types.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Grape--Validations--Types-multiple--for-pr


# Commit to git

git add lib/grape/validations/types.rbgit commit -m "better docs for Grape::Validations::Types.multiple?"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Grape--Validations--Types-multiple--for-pr

hub pull-request


# Celebrate!