Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated Generics have a long nearly unrecognizable name #4871

Open
acnicholls-kroll opened this issue Apr 26, 2024 · 0 comments
Open

Generated Generics have a long nearly unrecognizable name #4871

acnicholls-kroll opened this issue Apr 26, 2024 · 0 comments

Comments

@acnicholls-kroll
Copy link

acnicholls-kroll commented Apr 26, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant