作者:cryy5bl-1940 | 来源:互联网 | 2023-09-18 20:27
对象已发送
{
..
maritalStatus: null,//this is an enum (single,married...)
..
}
邮递员错误
{
"errors": {
"id": [
"The value '5db2b8d4cc354xxxxxx' is not valid."
],"maritalStatus": [
"Error converting value {null} to type 'myProject_Core.MaritalStatus'. Path 'maritalStatus',line 6,position 19."
]
},"title": "One or more validation errors occurred.","status": 400,"traceId": "80000009-0003-fe00-b63f-84710c7967bb"
}
我正在使用 mongo db ,其中ID被保存为ObjectId("5db2b8d4cc354xxxxxx")
,但是当我处理数据时,我不再需要使用ID来保存ID。
>