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
As already mentioned in few bugs, the allof still has issues.
I want to generate C# code from a swagger file in which I use allOf to create inheritance.
The generated child class should inherits the parent class and has its own properties.
The generated code (see below) received only the inheritance, without the local properties: the properties defined for the child class were not generated.
openapi-generator version
Lastest pull of docker image / SwaggerEditor UI, thus using generator version 3.2 ?
ericbl
changed the title
[BUG] C# allof inheritance ok, but local properties ignored
[BUG] C# allof inheritance ok, but local properties mssing
Jan 8, 2019
Description
As already mentioned in few bugs, the allof still has issues.
I want to generate C# code from a swagger file in which I use allOf to create inheritance.
The generated child class should inherits the parent class and has its own properties.
The generated code (see below) received only the inheritance, without the local properties: the properties defined for the child class were not generated.
openapi-generator version
Lastest pull of docker image / SwaggerEditor UI, thus using generator version 3.2 ?
OpenAPI declaration file content or url
I defined the following in my swagger file:
Steps to reproduce
I tried both generate server/aspnetcore and generate client/csharp from SwaggerEditor
I get the 2 classes in the models, where AugmentedResult inherits from Result.
But the properties defined in AugmentedResult are NOT generated.
And the rest of the class is also useless, starting with (GetHashCode, Equals, ToString()) where the local properties are also missing.
Related issues/PRs
Maybe 704
#1842
The text was updated successfully, but these errors were encountered: