{ "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties": { "items": { "type": "array", "items": { "title": "File Schema", "description": "Schema for a single file", "type": "object", "properties": { "id": { "type": "string", "pattern": "^[A-Fa-f\\d]{24}$" }, "applicationId": { "type": "string", "pattern": "^[A-Fa-f\\d]{24}$" }, "creationDate": { "type": "string", "format": "date-time" }, "lastUpdated": { "type": "string", "format": "date-time" }, "authorId": { "type": "string", "pattern": "^[A-Fa-f\\d]{24}$" }, "authorType": { "type": "string", "enum": [ "flow", "user", "device", "apiToken", "notebook" ] }, "status": { "type": "string", "enum": [ "pending", "moving", "deleting", "completed" ] }, "name": { "type": "string", "minLength": 1, "maxLength": 1024 }, "parentDirectory": { "type": "string", "maxLength": 1024 }, "type": { "type": "string", "enum": [ "file", "directory" ] }, "fileSize": { "type": "number" }, "s3etag": { "type": "string" }, "contentType": { "type": "string", "maxLength": 1024 }, "fileDimensions": { "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" } } }, "moveIntoId": { "type": "string", "pattern": "^[A-Fa-f\\d]{24}$" }, "url": { "type": "string" } } } }, "count": { "type": "integer" }, "totalCount": { "type": "integer" }, "perPage": { "type": "integer" }, "page": { "type": "integer" }, "filter": { "type": "string" }, "filterField": { "type": "string" }, "sortField": { "type": "string" }, "sortDirection": { "type": "string", "enum": [ "asc", "desc", "ASC", "DESC", "" ] }, "parentExists": { "type": "boolean" } } }