Skip to content

Conversation

@qboot
Copy link
Contributor

@qboot qboot commented Oct 19, 2022

Hello 👋

Currently the generated API encode query params arrays like: ?a=foo&a=bar&a=baz with the repeat convention.
But all the backends don't follow this convention, and some use the brackets one: ?a[]=foo&a[]=bar&a[]=baz.

So, this PR adds a new option --query-params-with-brackets which allow the use of the brackets convention instead of the repeat (only applicable when the query param is an array).

@js2me js2me deleted the branch acacode:next October 21, 2022 21:33
@js2me js2me closed this Oct 21, 2022
@qboot
Copy link
Contributor Author

qboot commented Oct 21, 2022

@js2me can you elaborate on why this PR has been closed? Thx!

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