Skip to content

Fix issue where array params are sometimes omitted when array_use_braces is true #957

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

olivier-thatch
Copy link

Fixes #952.

The fix consists of removing the [] suffix at the end of a parameter's name if the parameter is an array and it's a body param.

This fix is very hacky: ideally, [] shouldn't be added in the first place. But I don't think that can be achieved without significantly refactoring the code.

@dblock @numbata Curious if you have any thoughts on this approach.

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.

Bug report: omitted array parameters with array_use_braces: true
1 participant