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
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:The text was updated successfully, but these errors were encountered: