From 9d398040cb74165c6d7128415e62731efdbc7c2b Mon Sep 17 00:00:00 2001 From: coord_e Date: Sat, 22 Aug 2020 04:25:47 +0900 Subject: [PATCH] fix an error on /api-doc (#6665) --- src/server/api/openapi/schemas.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/server/api/openapi/schemas.ts b/src/server/api/openapi/schemas.ts index 0a49607f0..b96d1f457 100644 --- a/src/server/api/openapi/schemas.ts +++ b/src/server/api/openapi/schemas.ts @@ -15,6 +15,7 @@ import { packedHashtagSchema } from '../../../models/repositories/hashtag'; import { packedPageSchema } from '../../../models/repositories/page'; import { packedUserGroupSchema } from '../../../models/repositories/user-group'; import { packedNoteFavoriteSchema } from '../../../models/repositories/note-favorite'; +import { packedChannelSchema } from '../../../models/repositories/channel'; export function convertSchemaToOpenApiSchema(schema: Schema) { const res: any = schema; @@ -82,4 +83,5 @@ export const schemas = { Blocking: convertSchemaToOpenApiSchema(packedBlockingSchema), Hashtag: convertSchemaToOpenApiSchema(packedHashtagSchema), Page: convertSchemaToOpenApiSchema(packedPageSchema), + Channel: convertSchemaToOpenApiSchema(packedChannelSchema), };