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
versions:
In below 1x1 relation, I set an desc 'Address...' in address field, but it doesn't render the desc in swagger-ui.
address
module Entities class Client < Grape::Entity expose :name, documentation: { type: 'string', desc: 'Name' } expose :address, using: Entities::Address, documentation: { type: 'Entities::Address', desc: 'Address...', param_type: 'body', is_array: false } end class Address < Grape::Entity expose :street, documentation: { type: 'string', desc: 'Street' } end end
However, if I set the field as an array, it will render it.
expose :address, using: Entities::Address, documentation: { type: 'Entities::Address', desc: 'Addresses...', param_type: 'body', is_array: true }
The text was updated successfully, but these errors were encountered:
Hello, did you try to use description instead of desc?
description
desc
Sorry, something went wrong.
@Bugagazavr description doesn't work at all regardless of whether is_array is true or false:
is_array
expose :address, using: Entities::Address, documentation: { type: 'Entities::Address', description: 'Addresses...', param_type: 'body', is_array: true }
Ok, I will try to look into this and fix it.
No branches or pull requests
versions:
In below 1x1 relation, I set an desc 'Address...' in
address
field, but it doesn't render the desc in swagger-ui.However, if I set the field as an array, it will render it.
The text was updated successfully, but these errors were encountered: