From eb8d1211ba51d1c9b17b2c47642123aa108ad213 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 25 Feb 2019 03:43:19 +0900 Subject: Improve doc --- src/server/api/openapi/schemas.ts | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'src/server/api/openapi') diff --git a/src/server/api/openapi/schemas.ts b/src/server/api/openapi/schemas.ts index cca789bf7a..127a7939df 100644 --- a/src/server/api/openapi/schemas.ts +++ b/src/server/api/openapi/schemas.ts @@ -119,6 +119,39 @@ export const schemas = { required: ['id', 'createdAt', 'title'] }, + MessagingMessage: { + type: 'object', + properties: { + id: { + type: 'string', + format: 'id', + description: 'The unique identifier for this MessagingMessage.', + example: 'xxxxxxxxxxxxxxxxxxxxxxxx', + }, + createdAt: { + type: 'string', + format: 'date-time', + description: 'The date that the MessagingMessage was created.' + }, + text: { + type: 'string', + nullable: true + }, + file: { + type: 'DriveFile', + nullable: true + }, + recipientId: { + type: 'string', + format: 'id', + }, + recipient: { + $ref: '#/components/schemas/User' + }, + }, + required: ['id', 'createdAt'] + }, + Note: { type: 'object', properties: { -- cgit v1.2.3-freya