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
Hello there,
I'm building an application with a react frontend and C# REST API backend.
In the backend, I'm basically using dtos the following way (simplified):
// PersonDto.cspublicabstractclassPersonDto{publicrequiredstringName{get;set;}}// ChildDto.cspublicclassChildDto:PersonDto{}// AdultDto.cspublicclassAdultDto:PersonDto{publicrequired PersonDto[] Children {get;set;}}
What problem am I facing?
Background
Hello there,
I'm building an application with a react frontend and C# REST API backend.
In the backend, I'm basically using dtos the following way (simplified):
The generated openapi.json looks like this:
My openapi-codegen Problem
Now, when I run the code generation with this json, the generated schemas look like this:
My expectation was:
Questions
Is this the correct behavior or really a bug?
Is there a way to configure this behavior?
The text was updated successfully, but these errors were encountered: