ASP.Net Core Put FromBody request validation - json request contains only one bool field

后端 未结 0 1371
刺人心
刺人心 2021-01-15 11:31

I have to ensure that a request submitted for a PUT endpoint contains one and only element which is of bool type. Request is in Json format, will look as below, with either

相关标签:
回答
  • 消灭零回复
提交回复
热议问题