Skip to content

Query param with an array with deep level 2 is not loaded  #59

Description

@davidbayo10

Hi, I'm having a little problem if I try to define an array into query params. Here I have an example:

{
  "occupants": {
    "ages": [14, 45, 67]
  }
}
@ApiOperationGet({
    path: '',
    description: 'Get',
    summary: 'Get',
    parameters: {
      query: {
        'occupants[ages]': {
          name: 'occupants[ages]',
          type: SwaggerDefinitionConstant.Parameter.Type.ARRAY,
          required: true
        }
      }
    }
  })

I think that we need itemType into query params definition. Swagger allows this. If I try to see the generated documentation, I only can see a spinner trying to load something.

Thank you all a lot!

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions