We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
desc 'Create a foo', body_name: 'Body' do detail 'This endpoint is used to create foos' end post ...
This totally ignores the body_name setting.
body_name
desc 'Create a foo' do body_name 'Body' detail 'This endpoint is used to create foos' end post ...
This blows up: NoMethodError: undefined method 'body_name'
NoMethodError: undefined method 'body_name'
Is there a way to use both?
The text was updated successfully, but these errors were encountered:
I found the same bug here. If we declare detail block, the rest of params in desc (such as: summary, tags...) will be ignored.
detail
summary
tags
Sorry, something went wrong.
I found that you need to declare without block, I mean
desc 'Create a foo', body_name: 'Body', detail: "Hello"
This was fixed in Grape 1.2.2 (see ruby-grape/grape#1832)
No branches or pull requests
This totally ignores the
body_name
setting.This blows up:
NoMethodError: undefined method 'body_name'
Is there a way to use both?
The text was updated successfully, but these errors were encountered: