-
Notifications
You must be signed in to change notification settings - Fork 472
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
How to define notes
to an operation?
#212
Comments
Please see the README for how notes are used, there's a nice example, including how to do this in markdown. |
Yes i read that, the problem is that the example only adds a desc 'Gets something', notes: 'details' do
success AnEntity
end Above will add desc 'Gets something', notes: 'details', success: AnEntity Above could generate desc 'Gets something' do
notes 'details'
success AnEntity
end Above will fail due to undefined method |
seems related to #165 |
Thanks @calfzhou for bringing this up. Lets talk about it in ruby-grape/grape#920. See my comments, I would take a PR that addresses those two issues described. |
Reopening this since we basically lack support for notes given the new Grape DSL syntax with a block. |
i'm using grape 0.10.0 and grape-swagger 0.9.0.
As mentioned by grape documentation, i can add
detail
to each method, but the generated swagger doc doesn't contain information defined indetail
. Swagger's operationnotes
filed is always an empty string.I checked grape-swagger source code, the
notes
is generated by the following code:But i've no idea about what
route.route_notes
is.The text was updated successfully, but these errors were encountered: