Skip to content

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

@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 ?

Activity

ysv

ysv commented on Sep 12, 2018

@ysv
Author

related to #706

added a commit that references this issue on Sep 15, 2018
795a7fa
ysv

ysv commented on Sep 17, 2018

@ysv
Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @ysv

        Issue actions

          is_array is not supported if we pass options as a block to `desc` · Issue #705 · ruby-grape/grape-swagger