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

adding entity property description when documentation desc option is present #381

Merged
merged 1 commit into from
Apr 14, 2016

Conversation

elciok
Copy link
Contributor

@elciok elciok commented Apr 13, 2016

The swagger_doc json generated contains entity definitions, with property declarations, but if you set a "desc" option like this:

expose :name, documentation: {type: "String", desc: "Name of object"}

This gets ignored by grape-swagger. I've changed this.

@elciok elciok force-pushed the entity_field_descriptions branch from b720d01 to dbc887a Compare April 13, 2016 22:34
@@ -35,6 +35,10 @@

[#353](https://github.com/ruby-grape/grape-swagger/pull/353) resolves issue #352

[](https://github.com/ruby-grape/grape-swagger/pull/)
Copy link
Member

Choose a reason for hiding this comment

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

please move to the top

@LeFnord
Copy link
Member

LeFnord commented Apr 13, 2016

👍 thanks for it …

@elciok elciok force-pushed the entity_field_descriptions branch from dbc887a to 175f3ee Compare April 13, 2016 22:55
@LeFnord LeFnord merged commit 49f93b3 into ruby-grape:master Apr 14, 2016
LeFnord added a commit to LeFnord/grape-swagger that referenced this pull request Feb 9, 2019
adding entity property description when documentation desc option is present
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