parent
e6cdf1b995
commit
1903aaf351
3 changed files with 51 additions and 1 deletions
|
@ -18,5 +18,7 @@ export const kinds = [
|
|||
'write:notifications',
|
||||
'read:reactions',
|
||||
'write:reactions',
|
||||
'write:votes'
|
||||
'write:votes',
|
||||
'read:pages',
|
||||
'write:pages',
|
||||
];
|
||||
|
|
|
@ -12,6 +12,7 @@ import { packedMutingSchema } from '../../../models/repositories/muting';
|
|||
import { packedBlockingSchema } from '../../../models/repositories/blocking';
|
||||
import { packedNoteReactionSchema } from '../../../models/repositories/note-reaction';
|
||||
import { packedHashtagSchema } from '../../../models/repositories/hashtag';
|
||||
import { packedPageSchema } from '../../../models/repositories/page';
|
||||
|
||||
export function convertSchemaToOpenApiSchema(schema: Schema) {
|
||||
const res: any = schema;
|
||||
|
@ -76,4 +77,5 @@ export const schemas = {
|
|||
Blocking: convertSchemaToOpenApiSchema(packedBlockingSchema),
|
||||
NoteReaction: convertSchemaToOpenApiSchema(packedNoteReactionSchema),
|
||||
Hashtag: convertSchemaToOpenApiSchema(packedHashtagSchema),
|
||||
Page: convertSchemaToOpenApiSchema(packedPageSchema),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue