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

NSwag auto generate client: Generates function return object type wrong. #4926

Closed
salahhus opened this issue Jun 27, 2024 · 0 comments
Closed

Comments

@salahhus
Copy link

salahhus commented Jun 27, 2024

Hi NSwag team,

Just I'm trying to generate HttpClient generated file by NSwag from my API controller.

I have this marked row in my API controller:

image

But it generates here wrong return type:

image

I would expect this:
System.Threading.Tasks.Task<PageData<IEnumerable<ContractDto>>>GetContractAsync();

Please, could you give an advice, how can I solve it?
Thank you

@salahhus salahhus changed the title NSwag auto generate client: Generates return data type function wrong. NSwag auto generate client: Generates return object type function wrong. Jun 27, 2024
@salahhus salahhus changed the title NSwag auto generate client: Generates return object type function wrong. NSwag auto generate client: Generates function return object type wrong. Jun 28, 2024
@salahhus salahhus closed this as completed Jul 1, 2024
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