数据字段中有"defaultValue": null 的话就运行shema2code就报错 TypeError: Cannot convert undefined or null to object
"pause_to": {
"bsonType": "timestamp",
"description": "暂停结束日期",
"title": "暂停结束日期",
"defaultValue": null,
"group": "1"
}
YouKnowMe (作者)
require中没有字段
{
"bsonType": "object",
"required": [],
"permission": {
"read": true,
"create": true,
"update": true,
"delete": true
},
"properties": {
"_id": {
"description": "ID,系统自动生成"
},
"pause_to": {
"bsonType": "timestamp",
"description": "暂停结束日期",
"title": "暂停结束日期",
"defaultValue": null,
"group": "1"
}
}
}
2023-02-27 17:54