You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My question first of all would be: why? Why was such a mechanism introduced at all?
What do I miss?? What is the benefit / intention by doing this?
Does anyone know the answer for this?
In DefaultCodegenConfig there is a method findCommonPrefixOfVars() which is used in Enums generation and at the end of the day leads to renaming Enums.
Since this thing is sitting in DefaultCodegenConfig although not verified maybe happening in other languages too not just Java. For Java it is there for sure.
Version
1.0.36-SNAPSHOT (current master - when I file this problem)
The text was updated successfully, but these errors were encountered:
Description
Enum values are renamed in generated Java classes - compared to what I write in the schema.
This "feature" was already reported several times (in the swagger-codegen project)
but I just noticed this now by my own.
I found even a closed MR (in the swagger-codegen project at least)
which seems to touch this topic (and code looks good)
but this option/if/ whatever is not present in DefaultCodegenConfig
My question first of all would be: why? Why was such a mechanism introduced at all?
What do I miss?? What is the benefit / intention by doing this?
Does anyone know the answer for this?
In
DefaultCodegenConfig
there is a methodfindCommonPrefixOfVars()
which is used in Enums generation and at the end of the day leads to renaming Enums.Since this thing is sitting in
DefaultCodegenConfig
although not verified maybe happening in other languages too not just Java. For Java it is there for sure.Version
1.0.36-SNAPSHOT (current master - when I file this problem)
The text was updated successfully, but these errors were encountered: