summaryrefslogtreecommitdiff
path: root/src/server/api/openapi/schemas.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-04-14 20:38:55 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-04-14 20:38:55 +0900
commitd66e4b7ff97d512e2a2523815e2eef170456b37f (patch)
tree59ae1a102d88b5c2c2236b734ea4a584b4f9ba46 /src/server/api/openapi/schemas.ts
parent10.100.0 (diff)
parent11.0.0 (diff)
downloadmisskey-d66e4b7ff97d512e2a2523815e2eef170456b37f.tar.gz
misskey-d66e4b7ff97d512e2a2523815e2eef170456b37f.tar.bz2
misskey-d66e4b7ff97d512e2a2523815e2eef170456b37f.zip
Merge branch 'develop'
Diffstat (limited to 'src/server/api/openapi/schemas.ts')
-rw-r--r--src/server/api/openapi/schemas.ts40
1 files changed, 37 insertions, 3 deletions
diff --git a/src/server/api/openapi/schemas.ts b/src/server/api/openapi/schemas.ts
index 70a0d6faf0..5992fee835 100644
--- a/src/server/api/openapi/schemas.ts
+++ b/src/server/api/openapi/schemas.ts
@@ -221,7 +221,7 @@ export const schemas = {
},
type: {
type: 'string',
- enum: ['follow', 'receiveFollowRequest', 'mention', 'reply', 'renote', 'quote', 'reaction', 'poll_vote'],
+ enum: ['follow', 'receiveFollowRequest', 'mention', 'reply', 'renote', 'quote', 'reaction', 'pollVote'],
description: 'The type of the notification.'
},
},
@@ -258,7 +258,7 @@ export const schemas = {
description: 'The MD5 hash of this Drive file.',
example: '15eca7fba0480996e2245f5185bf39f2'
},
- datasize: {
+ size: {
type: 'number',
description: 'The size of this Drive file. (bytes)',
example: 51469
@@ -275,7 +275,7 @@ export const schemas = {
description: 'Whether this Drive file is sensitive.',
},
},
- required: ['id', 'createdAt', 'name', 'type', 'datasize', 'md5']
+ required: ['id', 'createdAt', 'name', 'type', 'size', 'md5']
},
DriveFolder: {
@@ -318,6 +318,40 @@ export const schemas = {
required: ['id', 'createdAt', 'name']
},
+ Following: {
+ type: 'object',
+ properties: {
+ id: {
+ type: 'string',
+ format: 'id',
+ description: 'The unique identifier for this following.',
+ example: 'xxxxxxxxxxxxxxxxxxxxxxxx',
+ },
+ createdAt: {
+ type: 'string',
+ format: 'date-time',
+ description: 'The date that the following was created.'
+ },
+ followeeId: {
+ type: 'string',
+ format: 'id',
+ },
+ followee: {
+ $ref: '#/components/schemas/User',
+ description: 'The followee.'
+ },
+ followerId: {
+ type: 'string',
+ format: 'id',
+ },
+ follower: {
+ $ref: '#/components/schemas/User',
+ description: 'The follower.'
+ },
+ },
+ required: ['id', 'createdAt', 'followeeId', 'followerId']
+ },
+
Muting: {
type: 'object',
properties: {