You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
o.InvalidModelStateResponseFactory = (context) =>
{
var error = context.ModelState.Keys
.SelectMany(k => context.ModelState[k].Errors)
.Select(e => e.ErrorMessage)
.ToArray();
return new JsonResult(ResponseOutput.NotOk("The inputs supplied to the API are invalid. " + JsonConvert.SerializeObject(error)));
};
});
在minimal api 有比较好的方式统一处理 来自url 路由 body 里面参数类型明显不符合要求的参数的方式么?
.NET version
No response
MASA Framework version
No response
The text was updated successfully, but these errors were encountered:
Description
传统控制器可以类似这样写:
.ConfigureApiBehaviorOptions(o =>
{
});
在minimal api 有比较好的方式统一处理 来自url 路由 body 里面参数类型明显不符合要求的参数的方式么?
.NET version
No response
MASA Framework version
No response
The text was updated successfully, but these errors were encountered: