Closed traed closed 1 week ago
Hi @traed, are you using the experimental parser? https://heyapi.dev/openapi-ts/configuration.html#parser
Tried it now (openapi-ts -e -o src/lib/api -c @hey-api/client-fetch -i <PATH>
) but got the same issue.
Thanks! I'll resolve it for the experimental parser, will let you know if the same fix works with the current parser when it's done
@traed try it in the next release with experimentalParser
set to true
, it should work!
Description
We have an OpenAPI 3.0 spec that specifies query params like this:
We want it to generate a query param for the request like
?example=e1,e2
but when we generate the client we get?example=e1&example=e2
. We could supply thequerySerializer
argument to fix this but it should not be needed if already supplied in the spec.The client config looks like this:
Reproducible example or configuration
No response
OpenAPI specification (optional)
System information (optional)
MacOS 14.6.1 Node v20.18.0 @hey-api/open-ts v0.55.1