Open lopesmcc opened 5 years ago
Seems to me that at DefaultCodegen.java:312
, we should be iterating through the model allVars
, and not only vars
. This way, it would generate the enumVars
metadata even for inherited data.
Not sure what kind of impact this would have for other generators.
Description
Whenever a definition is inheriting enumeration fields (using allOf), these end up being generated without any options.
Those same enumerations are being generated correctly on the original definition.
Our spec is still using swagger 2.0.
openapi-generator version
Happening on v3.3.4. Was using swagger-codegen before and did not have this issue.
OpenAPI declaration file content or url
Using the example above,
NamedObject
will look like: