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
168 stars 38 forks source link

.net core does not hornor [DataMember(IsRequired =true)] in validation. Not sure if this is the bug of .net core or Newtonsoft.Json #42

Closed zijianhuang closed 6 years ago

zijianhuang commented 6 years ago

Check this:

[Fact]
        public void TestCreatePersonWithEmptyName()
zijianhuang commented 6 years ago

explained at as described at https://www.strathweb.com/2017/12/required-and-bindrequired-in-asp-net-core-mvc/