FromQueryAttribute enum parameters throw validation_error invalid value, but parameters with FromBodyAttribute do not?

前端 未结 0 1231
借酒劲吻你
借酒劲吻你 2020-12-24 02:17

In ASP.NET Core, if an action accepts directly an enum type, and that enum for example has defined 1 to something, if we pass a value different than 1, we\'ll g

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