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

Support more options in desc block #1791

Merged

Conversation

darren987469
Copy link
Contributor

@darren987469 darren987469 commented Sep 15, 2018

Fix #1789.

Support summary, hidden, deprecated, is_array, nickname, produces, consumes, tags options in desc block.

desc 'Get users' do
  summary 'summary'
  hidden false
 ...
end

…y`, `hidden`, `deprecated`, `is_array`, `nickname`,`produces`, `consumes`, `tags` options in desc block.
@darren987469 darren987469 force-pushed the support_more_options_in_desc_block branch from 7858d71 to 89c4d2c Compare September 15, 2018 14:50
@dblock
Copy link
Member

dblock commented Sep 15, 2018

Rubocop needs a rubocop -a ; rubocop --auto-gen-config. Lets turn this 🍏 .

CHANGELOG.md Outdated
@@ -3,6 +3,7 @@
#### Features

* Your contribution here.
* [#1791](https://github.com/ruby-grape/grape/pull/1791): Support more options in desc block - [@darren987469](https://github.com/darren987469).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe quote desc.

Are these just "more" options, all options, specific options? All kinds of specific options? I am nitpicking but "more" isn't telling me much.

@darren987469 darren987469 force-pushed the support_more_options_in_desc_block branch from f02aac2 to b2f1fb2 Compare September 16, 2018 02:31
@darren987469 darren987469 force-pushed the support_more_options_in_desc_block branch from b2f1fb2 to ab66701 Compare September 16, 2018 02:34
@darren987469
Copy link
Contributor Author

Thanks for the comments. I fixed. Please take a look again, thanks!

Add real mime type in README.
Add options documentation in `desc`.
@dblock dblock merged commit 35b432c into ruby-grape:master Sep 16, 2018
@dblock
Copy link
Member

dblock commented Sep 16, 2018

Merged 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.

2 participants