RicoSuter / NSwag

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

Empty responses packaged the status in the response body and therefore always returned success (200 OK) #4829

Open Romout opened 3 months ago

Romout commented 3 months ago

I have changed the template so that empty responses keep their status by including a null object as payload.