Closed thegecko closed 7 years ago
@thegecko thanks for reporting the issue, which is pretty weird...
Do you mind giving it another try with the latest master of swagger codegen by building the JAR locally (mvn clean package
) to see if the latest code base still has the same issue?
Thanks, looks like this is fixed in 2.2.2-SNAPSHOT
@thegecko thanks for doing a test to confirm.
(If you like Swagger Codegen, please upvote our ProductHunt page)
Description
Fully qualified enum names don't work when overriding template files. This may be an issue broader than just enums and just the typescript language, but I haven't checked beyond the repro below.
Swagger-codegen version
Issue is with v2.2.1, not aware if this is a regression
Swagger declaration file content or url
http://petstore.swagger.io/v2/swagger.json
Command line used for generation
this works:
after adding the same template to a folder
template
, this produces a different output:Steps to reproduce
out/api.ts
and note the enum names, e.g. line 74:Expected: custom templates should have exactly the same data models passed in.
Related issues
None aware of
Suggest a Fix
It may be that the custom templates are somehow rendered without
postProcessModels
being run.