diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-02-27 05:08:42 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-02-27 05:08:42 +0900 |
| commit | 6f71ba376d6b9448b860083636af80c81886583d (patch) | |
| tree | 6cc10b0dfbe5382924984ad02a6c297b76fdc70a /src/server/api/openapi | |
| parent | Fix schema (diff) | |
| download | sharkey-6f71ba376d6b9448b860083636af80c81886583d.tar.gz sharkey-6f71ba376d6b9448b860083636af80c81886583d.tar.bz2 sharkey-6f71ba376d6b9448b860083636af80c81886583d.zip | |
Improve doc
Diffstat (limited to 'src/server/api/openapi')
| -rw-r--r-- | src/server/api/openapi/schemas.ts | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/server/api/openapi/schemas.ts b/src/server/api/openapi/schemas.ts index 0a32c8ae51..7b9dc35f27 100644 --- a/src/server/api/openapi/schemas.ts +++ b/src/server/api/openapi/schemas.ts @@ -362,6 +362,44 @@ export const schemas = { required: ['id', 'createdAt', 'blockee'] }, + Reaction: { + type: 'object', + properties: { + id: { + type: 'string', + format: 'id', + description: 'The unique identifier for this reaction.', + example: 'xxxxxxxxxxxxxxxxxxxxxxxx', + }, + createdAt: { + type: 'string', + format: 'date-time', + description: 'The date that the reaction was created.' + }, + user: { + $ref: '#/components/schemas/User', + description: 'User who performed this reaction.' + }, + type: { + type: 'string', + enum: [ + 'like', + 'love', + 'laugh', + 'hmm', + 'surprise', + 'congrats', + 'angry', + 'confused', + 'rip', + 'pudding' + ], + description: 'The reaction type.' + }, + }, + required: ['id', 'createdAt', 'user', 'type'] + }, + Hashtag: { type: 'object', properties: { |