diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-02-24 18:13:11 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-02-24 18:13:11 +0900 |
| commit | fcc6a65e08e502fb11e9603aabfa237dd82d4b25 (patch) | |
| tree | c53279a8e00ec6da552a8d3ed5f534d972a7511f /src/server/api/openapi/schemas.ts | |
| parent | ハイフンに統一 (diff) | |
| download | sharkey-fcc6a65e08e502fb11e9603aabfa237dd82d4b25.tar.gz sharkey-fcc6a65e08e502fb11e9603aabfa237dd82d4b25.tar.bz2 sharkey-fcc6a65e08e502fb11e9603aabfa237dd82d4b25.zip | |
Improve doc
Diffstat (limited to 'src/server/api/openapi/schemas.ts')
| -rw-r--r-- | src/server/api/openapi/schemas.ts | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/server/api/openapi/schemas.ts b/src/server/api/openapi/schemas.ts index 6450dcb3ff..a57be81502 100644 --- a/src/server/api/openapi/schemas.ts +++ b/src/server/api/openapi/schemas.ts @@ -146,6 +146,28 @@ export const schemas = { required: ['id', 'userId', 'createdAt'] }, + Notification: { + type: 'object', + properties: { + id: { + type: 'string', + format: 'id', + description: 'The unique identifier for this notification.' + }, + createdAt: { + type: 'string', + format: 'date-time', + description: 'The date that the notification was created.' + }, + type: { + type: 'string', + enum: ['follow', 'receiveFollowRequest', 'mention', 'reply', 'renote', 'quote', 'reaction', 'poll_vote'], + description: 'The type of the notification.' + }, + }, + required: ['id', 'createdAt', 'type'] + }, + DriveFile: { type: 'object', properties: { |