grape
https://github.com/intridea/grape
Ruby
An opinionated framework for creating REST-like APIs in Ruby.
Grape::Validations::Types::CustomTypeCoercer#enforce_symbolized_keys
Enforce symbolized keys for complex types by wrapping the coercion method such that any Hash objects in the immediate heirarchy are passed through +Hashie.symbolize_keys!+. This helps common libs such as JSON to work easily.
Edit
git clone [email protected]:intridea/grape.git
cd grape
open lib/grape/validations/types/custom_type_coercer.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Grape--Validations--Types--CustomTypeCoercer-enforce_symbolized_keys-for-pr
# Commit to gitgit add lib/grape/validations/types/custom_type_coercer.rbgit commit -m "better docs for Grape::Validations::Types::CustomTypeCoercer#enforce_symbolized_keys"
# 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--Types--CustomTypeCoercer-enforce_symbolized_keys-for-pr
hub pull-request
# Celebrate!