swagger-api / swagger-codegen

swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
http://swagger.io
Apache License 2.0
17.01k stars 6.03k forks source link

C# Client CodeGen is generating classes with duplicate properties #11813

Open sagarbsv opened 2 years ago

sagarbsv commented 2 years ago
Description

C# Client code is generating duplicated properties for a swagger.

Swagger-codegen version

swagger-codegen-CLI-3.0.27.jar

Swagger declaration file content or url

C# Client CodeGen is generating classes with duplicate properties for the attached API. "requestedPassengerType" property is duplicated inside PriceBreakdownAir class. string carrier = default(string), string number = default(string), string operating carrier are duplicated inside "Flight" class

Suggest a fix/enhancement

C#CodegenIssue.docx

sagarbsv commented 2 years ago

Can anyone please look into this issue?