{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"msg": { "type": "string" },
"code": { "type": "number", "mock": { "mock": "0" } },
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"spaceId": { "type": "number", "description": "ID пространства" },
"fileId": { "type": "string", "description": "ID файла" },
"fileName": { "type": "string", "description": "Название файла" },
"type": {
"type": "string",
"description": "Тип файла: 1:документ, 2:таблица, 3:презентация"
},
"parentId": {
"type": "string",
"description": "ID родительского узла, если родитель - пространство, то \"\""
},
"icon": { "type": "string" },
"fileOrder": {
"type": "string",
"description": "Предыдущий узел на том же уровне для текущего файла"
}
},
"required": [
"spaceId",
"fileId",
"fileName",
"type",
"parentId",
"fileOrder"
]
}
},
"requestId": { "type": "string" },
"errNo": { "type": "number" },
"errStr": { "type": "string" }
},
"required": ["msg", "code", "data", "requestId"]
}