You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I added a new endpoint in my controller that return an FileContentResult.
When I'm using NSwag studtio to generated the c# client, it generates the class FileResponse as return value for my new endpoint.
The problem is that I already have a class named FileResponse in my generated class.
I cannot rename it because it will cause a breaking change.
I also would prefer not to return a custom class and keep the asp.net way to do it (use ControllerBase.File() method).
So my question is : Is there a way to rename the class generated by NSwag Studio?
I looked at the options in the software and I didn't see anything.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I added a new endpoint in my controller that return an FileContentResult.
When I'm using NSwag studtio to generated the c# client, it generates the class FileResponse as return value for my new endpoint.
The problem is that I already have a class named FileResponse in my generated class.
I cannot rename it because it will cause a breaking change.
I also would prefer not to return a custom class and keep the asp.net way to do it (use ControllerBase.File() method).
So my question is : Is there a way to rename the class generated by NSwag Studio?
I looked at the options in the software and I didn't see anything.
Thanks for you help
Beta Was this translation helpful? Give feedback.
All reactions