Skip to content
New issue

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

Allow passing options hash to a custom validator #719

Closed
wants to merge 2 commits into from

Conversation

elado
Copy link
Contributor

@elado elado commented Aug 14, 2014

Removed options check on Validator (was unnecessary + wrong syntax)
Allowed passing options hash to a custom validator

Original Code referred Grape::Exceptions.UnknownOptions which not valid (should've been Grape::Exceptions::UnknownOptions).

Fixes #718

allow passing options hash to a custom validator
@elado elado changed the title Removed options check on Validator (was unnecessary + wrong syntax) Allowed passing options hash to a custom validator Aug 14, 2014
@elado elado changed the title Allowed passing options hash to a custom validator Allow passing options hash to a custom validator Aug 14, 2014
@dblock
Copy link
Member

dblock commented Aug 14, 2014

This looks legit. Can you please update CHANGELOG and fix the Rubocop errors? See the Travis build failure. Thx.

@elado
Copy link
Contributor Author

elado commented Aug 14, 2014

@dblock Done!

@dblock
Copy link
Member

dblock commented Aug 15, 2014

Merged via 706e841. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom Validator with a Hash as an option is invalid -- Why?
2 participants