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

Support square bracket params #165

Open
alllohaaa opened this issue Dec 1, 2021 · 0 comments
Open

Support square bracket params #165

alllohaaa opened this issue Dec 1, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@alllohaaa
Copy link

alllohaaa commented Dec 1, 2021

need to support square bracket query params with OpenAPI 3.0 style: deepObject and explode: true spec

query example
https://api.example.com/profiles/list?position[lat]=37.1&position[lng]=-122.1

yaml example

openapi: 3.0.0
...

paths:
  /info:
    get:
      parameters:
        - in: query
          name: sort
          schema:
            type: object
            properties:
              name:
                type: integer
                example: 1
              age:
                type: integer
                example: -1
          style: deepObject
          explode: true
      responses:
        '200':
          description: OK

spec
https://swagger.io/docs/specification/serialization/

@Alex009 Alex009 added the enhancement New feature or request label Dec 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

2 participants