versions: - grape (1.3.0) - grape-entity (0.7.1) - grape-swagger (1.0.0) - grape-swagger-entity (0.3.4) In below 1x1 relation, I set an desc 'Address...' in `address` field, but it doesn't render the desc in swagger-ui. ```ruby 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. ```ruby expose :address, using: Entities::Address, documentation: { type: 'Entities::Address', desc: 'Addresses...', param_type: 'body', is_array: true } ``` 
Activity
kzaitsev commentedon Apr 22, 2020
Hello, did you try to use
descriptioninstead ofdesc?run27017 commentedon Apr 22, 2020
@Bugagazavr
descriptiondoesn't work at all regardless of whetheris_arrayis true or false:kzaitsev commentedon Apr 22, 2020
Ok, I will try to look into this and fix it.
Fix #44: description not rendered for non-array entity references
Fix ruby-grape#44: description not rendered for non-array entity refe…