RicoSuter / NSwag

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

text/html type responses should be generated as ContentResult instead of string #2903

Open craigngu opened 4 years ago

craigngu commented 4 years ago

Currently it defaults to text/plain with what is generated. Seems like to return a text/html in .net core we will need to either use content result or a different output formatter

RicoSuter commented 4 years ago

Is this with the controller generator?

kyryloboiev commented 1 year ago

any update? https://github.com/RicoSuter/NSwag/issues/2384