Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

How to define Body and Response type names for the route? #10

Open
dmitry-pavlov opened this issue Apr 4, 2024 · 1 comment
Open

How to define Body and Response type names for the route? #10

dmitry-pavlov opened this issue Apr 4, 2024 · 1 comment

Comments

@dmitry-pavlov
Copy link

@sergeyzwezdin when I generate API client with NSwag from API definition I am getting responses and body parameters named like:

  • Body, Body2, Body3, Body4, ...
  • Response, Response2, Response3, Response4, ....

So API client methods looks like this:

public virtual async System.Threading.Tasks.Task<Response5> List_UpdateAsync(Body5 body, System.Threading.CancellationToken cancellationToken) {...}

How to define Body and Response type names for the route? :)

@sergeyzwezdin
Copy link
Member

Will take a look

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

No branches or pull requests

2 participants