Skip to content

Allow query parameters to be an array#724

Closed
MichielHegemans wants to merge 1 commit intooxidecomputer:mainfrom
MichielHegemans:feature/query-parameter-array
Closed

Allow query parameters to be an array#724
MichielHegemans wants to merge 1 commit intooxidecomputer:mainfrom
MichielHegemans:feature/query-parameter-array

Conversation

@MichielHegemans
Copy link

Does not support explode: false at the moment as the .query(&query) call does urlencode on the , in case we join the arguments.

It is not entirely clear to me whether or not it is correct, but I believe that id=a%2Cb results into id = ["a,b"] while id=a,b results in id = ["a", "b"]

It does support type: array in the openapi spec and will add an exploded version to the URL id=a&id=b to the query.

Supports `explode: true` and `explode: false` and will default to `true`
if missing on arrays.
@ahl
Copy link
Collaborator

ahl commented Dec 27, 2024

Obviated by #1017

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

Successfully merging this pull request may close these issues.

2 participants