{ "schema": { "bsonType": "object", "required": ["name"], "permission": { "read": true, "create": false, "update": false, "delete": false }, "properties": { "_id": { "description": "存储文档 ID(文章 ID),系统自动生成" }, "parent_id": { "bsonType": "string", "description": "父ID,用于多级分类" }, "name": { "bsonType": "string", "description": "类别名称", "title":"类别名称" }, "icon": { "bsonType": "string", "description": "类别图标/图片地址", "title":"图标地址", "pattern": "^(http://|https://|/|./|@/)\\S" }, "sort": { "bsonType": "int", "description": "类别排序,越大越靠后", "title":"排序" }, "description": { "bsonType": "string", "description": "类别描述", "title":"类别描述" }, "is_hot_show": { "bsonType": "Boolean", "title":"加入热门显示", "description": "是否热门显示" }, "is_index_show": { "bsonType": "Boolean", "title":"首页显示", "description": "是否首页显示" }, "create_date": { "bsonType": "timestamp", "description": "创建时间", "defaultValue": { "$env": "now" } } } }, "data": [], "index": [] }