Skip to content

is_array is not supported if we pass options as a block to desc #705

Closed
@ysv

Description

@ysv

Old style desc works well for me

desc 'Get list of user accounts',
  is_array: true,
  success: Entities::Account

But since passing it via hash is deprecated I've tried to pass it via block and it didn't work for me

desc 'Get list of user accounts' do
  success Entities::Account
  is_array true
end

same for this

desc 'Get list of user accounts', is_array: true do
  success Entities::Account
end

How array response should be described in documentation using block ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions