Skip to content

Allow desc or description to be used for parameter descriptions #819

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

Closed
wants to merge 1 commit into from

Conversation

mzikherman
Copy link
Contributor

I was surprised that you had to use desc to describe parameters. Using description would throw an unknown validator error as Grape interpreted it as a custom validation (ie- regexp, etc.).

I added a spec that setting either desc or description works (returns a 200, currently this will crash if you use description).

Let me know if that's an odd spec or if you'd like something in addition. Was a bit unsure where such a seemingly-simple spec should go. Thanks! great gem btw 😄

@mzikherman mzikherman force-pushed the allow_description branch 2 times, most recently from 196e5f1 to 6468f95 Compare November 20, 2014 02:22
@dblock
Copy link
Member

dblock commented Nov 20, 2014

This is perfect. Please update CHANGELOG and README. Thanks.

@mzikherman mzikherman force-pushed the allow_description branch 2 times, most recently from 564d9ae to eb62a9f Compare November 21, 2014 03:18
@mzikherman
Copy link
Contributor Author

Updated the CHANGELOG. I'm not sure there's anything that requires an update in the README.

@dblock
Copy link
Member

dblock commented Nov 21, 2014

Merged via 64d75b0, thank you.

@dblock dblock closed this Nov 21, 2014
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.

2 participants