Skip to content
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

[Javascript-Flowtyped] Handle joining uniqueItems in api template #9417

Merged
merged 2 commits into from
May 10, 2021

Conversation

kkellyy
Copy link
Contributor

@kkellyy kkellyy commented May 6, 2021

Without these changes, openapi-generator will create Set() objects for swagger parameters with "uniqueItems": true. This wraps those Sets in Array.from() so they can be properly joined. When debugging this in our setup, I found #8695 which fixes this issue for typescript-fetch in the same way.

Also replaced some mixed-indent with spaces in the relevant file.

@kkellyy
Copy link
Contributor Author

kkellyy commented May 6, 2021

I only figured out how to switch the target branch in Github's UI after I recreated this... sorry! I can reopen #9412 or just stick with this one now, @wing328

@wing328
Copy link
Member

wing328 commented May 10, 2021

cc @CodeNinjai (2017/07) @frol (2017/07) @cliffano (2017/07)

@wing328
Copy link
Member

wing328 commented May 10, 2021

Let's go with what you've so far.

@wing328 wing328 merged commit a98cb97 into OpenAPITools:master May 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants