zijianhuang / webapiclientgen

Strongly Typed Client API Generators generate strongly typed client APIs in C# .NET and in TypeScript for jQuery and Angular 2+ from ASP.NET Web API and .NET Core Web API
MIT License
167 stars 38 forks source link

when generating C# codes for System.Text.Json, interpret empty 204 as null for nullable structure. #156

Closed ZijianFLG closed 2 months ago

ZijianFLG commented 2 months ago

add

if (responseMessage.StatusCode == System.Net.HttpStatusCode.NoContent) { return null; }
ZijianFLG commented 2 months ago

all good. done