Open ghost opened 6 years ago
I agree that there are some bugs in the generated code. I think that it is better so specify them better, so I created some related issues: https://github.com/swagger-api/swagger-codegen/issues/8857, https://github.com/swagger-api/swagger-codegen/issues/8856, https://github.com/swagger-api/swagger-codegen/issues/8855, https://github.com/swagger-api/swagger-codegen/issues/8854
Description
I have built a a simple WebAPI using Swashbuckle for use in my Angular 6.2.5 project. The output of the client SDK for this project type: "typescript-angular" is terribly outdated and produces erroneous code to boot. I spend about 40 minutes each time I download this typescript-angular SDK formatting and fixing it so it will work without breaking the build in my production app.
Swagger-codegen version
Swagger Codegen Version is latest as of 10/23/218, I cannot locate the specific version
Steps to reproduce
Upload swagger docs json to SwaggerHub, get the client sdk as typescript-angular. Make sure to check all but the last checkbox for options of the typescript-angular package. Download and witness the mess that is produced. The version box at the bottom does absolutely nothing.
Suggest a fix/enhancement
Someone test this output before publishing to the world. This output code produces errors with interfaces, rxjs imports, many http imports, completely botches import for Interfaces, produces many linting errors.
Here is the JSON used in Swagger Hub