diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-06-08 14:26:52 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-06-08 14:26:52 +0900 |
| commit | a65eb502d2a1d54e5ed3594a11d0aad3bdc3de89 (patch) | |
| tree | 607cf13af4775dbdf0c4fdfc657bc62b01cf18b9 /src | |
| parent | Remove entity descriptions (diff) | |
| download | sharkey-a65eb502d2a1d54e5ed3594a11d0aad3bdc3de89.tar.gz sharkey-a65eb502d2a1d54e5ed3594a11d0aad3bdc3de89.tar.bz2 sharkey-a65eb502d2a1d54e5ed3594a11d0aad3bdc3de89.zip | |
fix api response definition
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/api/endpoints/blocking/delete.ts | 67 |
1 files changed, 2 insertions, 65 deletions
diff --git a/src/server/api/endpoints/blocking/delete.ts b/src/server/api/endpoints/blocking/delete.ts index 28776727a5..c69c8b14a7 100644 --- a/src/server/api/endpoints/blocking/delete.ts +++ b/src/server/api/endpoints/blocking/delete.ts @@ -48,71 +48,8 @@ export const meta = { res: { type: 'object' as const, optional: false as const, nullable: false as const, - properties: { - id: { - type: 'string' as const, - optional: false as const, nullable: false as const, - format: 'id', - example: 'xxxxxxxxxx', - }, - name: { - type: 'string' as const, - optional: false as const, nullable: true as const - }, - username: { - type: 'string' as const, - optional: false as const, nullable: false as const - }, - host: { - type: 'string' as const, - optional: false as const, nullable: true as const - }, - avatarUrl: { - type: 'string' as const, - optional: false as const, nullable: false as const, - format: 'url' - }, - avatarBlurhash: { - type: 'string' as const, - optional: false as const, nullable: true as const - }, - avatarColor: { - type: 'any' as const, - optional: false as const, nullable: true as const - }, - emojis: { - type: 'array' as const, - optional: false as const, nullable: false as const, - items: { - type: 'object' as const, - nullable: false as const, optional: false as const, - properties: { - name: { - type: 'string' as const, - nullable: false as const, optional: false as const - }, - host: { - type: 'string' as const, - nullable: true as const, optional: false as const - }, - url: { - type: 'string' as const, - nullable: false as const, optional: false as const, - format: 'url' - }, - aliases: { - type: 'array' as const, - nullable: false as const, optional: false as const, - items: { - type: 'string' as const, - nullable: false as const, optional: false as const - } - } - } - } - } - } - } + ref: 'User', + }, }; export default define(meta, async (ps, user) => { |