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

Added support for optional param documentation with using #912

Merged

Conversation

croeck
Copy link
Contributor

@croeck croeck commented Jan 28, 2015

Without these changes the using does only work for requires and not with optional parameters. This restriction is currently not documented.

The feature / fix is required to provide a more complete DRY approach when using grape-swagger and grape-entity. With these changes, one can document the possible fields and values, e.g. when using PATCH update, without requiring them to be present.

@croeck croeck force-pushed the optional-param-documentation-with-using branch from aedd249 to b18f498 Compare January 28, 2015 08:09
@dblock
Copy link
Member

dblock commented Jan 29, 2015

Odd that we only did it for requires. This looks good, thank you.

dblock added a commit that referenced this pull request Jan 29, 2015
…-using

Added support for `optional` param documentation with `using`
@dblock dblock merged commit 4704cc5 into ruby-grape:master Jan 29, 2015
@swistaczek
Copy link

👍

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.

3 participants