Closed
Description
Description
The typescript-fetch
client template inserts local variables with names like path
, which is a fairly common name for API parameters. If an API has a parameter named path
, the generated client will have a compile error and the transpiled code can have subtle bugs.
Swagger-codegen version
Issue is present in 96137e5. Specifically, the lines starting here.
Swagger declaration file content or url
Command line used for generation
generate -i /moby/api/swagger.yaml -l typescript-fetch -o /package
Suggest a fix/enhancement
Use mangled names for the local variables (e.g. const ____path
or such).