Open lightningrob opened 7 years ago
We do have test cases to cover this. Can you please try the latest master to see if the issue still occurs? Snapshot version available at https://github.com/swagger-api/swagger-codegen#compatibility
Will try that and report results.
Hi Im trying to upgarde to 2.4.39 still see same issue can you help
I am seeing the same error. Is there a fix for this ?
Description
I am seeing what appears to be a regression with the swagger codegen releases 2.2.x, compared to 2.1.6 which behaves correctly. If I define enums in the yml file, the generated java classes contain enums that don't compile due to duplicated double-quotes around the constant strings.
Example:
produces uncompilable java code:
Swagger-codegen version
Works with 2.1.6, fails (duplicate double-quotes) with 2.2.0 - 2.2.3
Swagger declaration file content or url
Command line used for generation
Gradle task:
Steps to reproduce
Run "gradle generateAPI"
Related issues/PRs
https://github.com/swagger-api/swagger-codegen/issues/3593
Suggest a fix/enhancement
Regression from 2.1 to 2.2 release.