RicoSuter / NSwag

The Swagger/OpenAPI toolchain for .NET, ASP.NET Core and TypeScript.
http://NSwag.org
MIT License
6.61k stars 1.22k forks source link

Generated Generics have a long nearly unrecognizable name #4871

Open acnicholls-kroll opened 2 months ago

acnicholls-kroll commented 2 months ago

this class PageResponse<OrganizationResponse> generates as PagedResponse_1OfOfOrganizationResponseAnd...And_0AndCulture_neutralAndPublicKeyToken_null

How can I get the client generator to use my type and not this long named one?
PageResponse<T> is in a NuGet within my API project OrganizationResponse is a custom class inside my API project

Because I'm not generating DTOs with NSwag Studio, I don't get the long named class in the generated client, but that's OK, because I'd rather use my own DTOs, so the property names map to my database models where relevant.