Skip to content
New issue

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

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

Open
davidbayo10 opened this issue Feb 3, 2020 · 0 comments
Open

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

davidbayo10 opened this issue Feb 3, 2020 · 0 comments

Comments

@davidbayo10
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant