openapi-python-client icon indicating copy to clipboard operation
openapi-python-client copied to clipboard

Support array query parameters with explode

Open bowenwr opened this issue 5 years ago • 0 comments

Is your feature request related to a problem? Please describe.

Given an array query parameter with explode set to false, we'd like to generate a client that handles it properly. For instance, with a parameter:

- name: multipleIds
        in: query
        schema:
          type: array
        items:
        type: string
        explode: false
        description: Comma-separated list of IDs of custom entities to get.

The client currently appends the parameter to the query string multiple times like ?multipleIds=1&multipleIds=2

Describe the solution you'd like

Given the above example, the client should generate a URL with a query string like ?multipleIds=1,2

bowenwr avatar Sep 23 '20 03:09 bowenwr