forked from FoundKeyGang/FoundKey
fix an error on /api-doc (#6665)
This commit is contained in:
parent
aa55acedc9
commit
9d398040cb
1 changed files with 2 additions and 0 deletions
|
@ -15,6 +15,7 @@ import { packedHashtagSchema } from '../../../models/repositories/hashtag';
|
||||||
import { packedPageSchema } from '../../../models/repositories/page';
|
import { packedPageSchema } from '../../../models/repositories/page';
|
||||||
import { packedUserGroupSchema } from '../../../models/repositories/user-group';
|
import { packedUserGroupSchema } from '../../../models/repositories/user-group';
|
||||||
import { packedNoteFavoriteSchema } from '../../../models/repositories/note-favorite';
|
import { packedNoteFavoriteSchema } from '../../../models/repositories/note-favorite';
|
||||||
|
import { packedChannelSchema } from '../../../models/repositories/channel';
|
||||||
|
|
||||||
export function convertSchemaToOpenApiSchema(schema: Schema) {
|
export function convertSchemaToOpenApiSchema(schema: Schema) {
|
||||||
const res: any = schema;
|
const res: any = schema;
|
||||||
|
@ -82,4 +83,5 @@ export const schemas = {
|
||||||
Blocking: convertSchemaToOpenApiSchema(packedBlockingSchema),
|
Blocking: convertSchemaToOpenApiSchema(packedBlockingSchema),
|
||||||
Hashtag: convertSchemaToOpenApiSchema(packedHashtagSchema),
|
Hashtag: convertSchemaToOpenApiSchema(packedHashtagSchema),
|
||||||
Page: convertSchemaToOpenApiSchema(packedPageSchema),
|
Page: convertSchemaToOpenApiSchema(packedPageSchema),
|
||||||
|
Channel: convertSchemaToOpenApiSchema(packedChannelSchema),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue