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
A PR(#3935) has been opened by @j4velin regarding this problem, but I cannot find any related issue.
Using the simple definition below, we get duplicate vars for seaplane:
Also, I am unsure if the PR fully fixes the issue. Since the second call to addVars(...) will add new properties to m.allVars instead of m.vars, these properties will not be taken into account by postProcessModelProperty as it is run only on m.vars.
In DefaultCodegen for CompositeModel.fromModel the some properties are added twice, when calling addVars, when supportsInheritance is true: from properties and from allProperties. This is the root cause of the issue which may affect readOnlyVars, readWriteVars, requiredVars and optionalVars, and is language independent.
Description
A PR(#3935) has been opened by @j4velin regarding this problem, but I cannot find any related issue.
Using the simple definition below, we get duplicate vars for seaplane:
Also, I am unsure if the PR fully fixes the issue. Since the second call to
addVars(...)
will add new properties tom.allVars
instead ofm.vars
, these properties will not be taken into account bypostProcessModelProperty
as it is run only onm.vars
.Swagger-codegen version
Master branch
Swagger declaration file content or url
The text was updated successfully, but these errors were encountered: