YouKnowMe
YouKnowMe
  • 发布:2023-02-26 14:32
  • 更新:2023-02-27 11:35
  • 阅读:135

数据字段中有"defaultValue": null 的话就运行shema2code就报错

分类:uniCloud

数据字段中有"defaultValue": null 的话就运行shema2code就报错 TypeError: Cannot convert undefined or null to object

        "pause_to": {  
            "bsonType": "timestamp",  
            "description": "暂停结束日期",  
            "title": "暂停结束日期",  
            "defaultValue": null,  
            "group": "1"  
        }
2023-02-26 14:32 负责人:DCloud_uniAD_HDX 分享
已邀请:
DCloud_UNI_LXH

DCloud_UNI_LXH

require 必填中不要写这个字段再运行试试

  • 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

要回复问题请先登录注册