openapi-generator icon indicating copy to clipboard operation
openapi-generator copied to clipboard

[REQ] Regarding query parameters in array format.

Open owk-owk130 opened this issue 3 years ago • 1 comments

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

When setting query parameters for arrays The request does not follow the expected request format on the server side.

Describe the solution you'd like

If the query parameter is an array I want to be able to send a request with ?arr="1"&arr="2" in the format ?arr[]="1"&arr[]="2".

If the query parameter is an array, I would like to have the option to add [] to the key, like the default setting in axios.

Describe alternatives you've considered

Create a Class that extends URLSearchParams and insert [] in key for arrays when appending

--

Thank you for your consideration.

owk-owk130 avatar Jun 08 '22 07:06 owk-owk130

Have you solved this yet? Running into the same issue...

Redmega avatar Oct 17 '24 00:10 Redmega