Skip to content

feat(query-params): add an option to use brackets convention with arrays #420

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
wants to merge 1 commit into from

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