diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-02-25 03:43:19 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-02-25 03:43:19 +0900 |
| commit | eb8d1211ba51d1c9b17b2c47642123aa108ad213 (patch) | |
| tree | d93fd0e37412fbd9c478bfcc95f0c6fbd3704f12 /src/server/api/openapi | |
| parent | Improve doc (diff) | |
| download | sharkey-eb8d1211ba51d1c9b17b2c47642123aa108ad213.tar.gz sharkey-eb8d1211ba51d1c9b17b2c47642123aa108ad213.tar.bz2 sharkey-eb8d1211ba51d1c9b17b2c47642123aa108ad213.zip | |
Improve doc
Diffstat (limited to 'src/server/api/openapi')
| -rw-r--r-- | src/server/api/openapi/schemas.ts | 33 |
1 files changed, 33 insertions, 0 deletions
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: { |