Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Support array query parameters with explode #197

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

Closed
bowenwr opened this issue Sep 23, 2020 · 0 comments
Closed

Support array query parameters with explode #197

bowenwr opened this issue Sep 23, 2020 · 0 comments
Labels
✨ enhancement New feature or improvement 🍭 OpenAPI Compliance Supporting a new bit of the OpenAPI spec

Comments

@bowenwr
Copy link
Contributor

bowenwr commented Sep 23, 2020

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 bowenwr added the ✨ enhancement New feature or improvement label Sep 23, 2020
@dbanty dbanty added the 🍭 OpenAPI Compliance Supporting a new bit of the OpenAPI spec label Aug 13, 2023
@openapi-generators openapi-generators locked and limited conversation to collaborators Aug 13, 2023
@dbanty dbanty converted this issue into discussion #831 Aug 13, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
✨ enhancement New feature or improvement 🍭 OpenAPI Compliance Supporting a new bit of the OpenAPI spec
Projects
None yet
Development

No branches or pull requests

2 participants