-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[typescript-fetch] support explode query parameters #6364
[typescript-fetch] support explode query parameters #6364
Conversation
👍 Thanks for opening this issue! The team will review the labels and make any necessary changes. |
079ffa8
to
d85110a
Compare
I'm not sure whether this is a breaking change. It depends whether None of the petstore examples have changed, because none of the examples use |
@leonyu Could you have a look? |
Sorry, I no longer work for the company that used this. I don't really have the setup or context to develop for this. If it is a trivial PR, I can code review, that's about it. Beyond that, I can't contribute in any meaningful capacity. |
You should probably remove yourself from the technical committee. That said, who should I tag for this PR to review? |
I am not on the committee for this project. I never contributed directly to this project. My contributions were for the upstream at https://github.com/swagger-api/swagger-codegen . My guess is you should probably ping one of the TypeScript person on the committee. |
Ah I wasn't aware. Sorry for the inconvenience. Pinging technical committee of typescript: @TiFu (2017/07) @taxpon (2017/07) @sebastianhaas (2017/07) @kenisteward (2017/07) @Vrolijkx (2017/09) @macjohnny (2018/01) @topce (2018/10) @akehir (2019/07) @petejohansonxo (2019/11) @amakhrov (2020/02) |
@bobvanderlinden could you please clarify why the existing logic that supports |
You are totally right. It is already supported, but the default of |
@amakhrov I am having a similar issue, I could not find (something similar to) |
Related to #3781
Currently multiple query parameters that are serialized as CSV.
param: [1,2,3]
becomesparam=1,2,3
.The OpenAPI specification https://swagger.io/docs/specification/serialization/#query says the default serialization for query parameters with multiple values is
style: form
withexplode: true
. That means that means that serialization forparam: [1,2,3]
should beparam=1¶m=2¶m=3
.This PR attempts to add such support for
explode
fortypescript-fetch
.PR checklist
./bin/
(or Windows batch scripts under.\bin\windows
) to update Petstore samples related to your fix. This is important, as CI jobs will verify all generator outputs of your HEAD commit, and these must match the expectations made by your contribution. You only need to run./bin/{LANG}-petstore.sh
,./bin/openapi3/{LANG}-petstore.sh
if updating the code or mustache templates for a language ({LANG}
) (e.g. php, ruby, python, etc).master
,4.3.x
,5.0.x
. Default:master
.