Fix API Schema Error

This commit is contained in:
tamaina 2022-01-14 02:39:25 +09:00
parent 27778f839a
commit 21b6176d97
122 changed files with 137 additions and 133 deletions

View File

@ -22,9 +22,5 @@ export const packedQueueCountSchema = {
type: 'number' as const,
optional: false as const, nullable: false as const,
},
paused: {
type: 'number' as const,
optional: false as const, nullable: false as const,
},
},
};

View File

@ -3,7 +3,7 @@ import { dirname } from 'path';
import { Context } from 'cafy';
import * as path from 'path';
import * as glob from 'glob';
import { SimpleSchema } from '@/misc/simple-schema';
import { Schema } from '@/misc/schema';
//const _filename = fileURLToPath(import.meta.url);
const _filename = __filename;
@ -34,7 +34,7 @@ export interface IEndpointMeta {
};
};
res?: SimpleSchema;
res?: Schema;
/**
*

View File

@ -93,17 +93,17 @@ export const meta = {
reporter: {
type: 'object' as const,
nullable: false as const, optional: false as const,
ref: 'User',
ref: 'User' as const,
},
targetUser: {
type: 'object' as const,
nullable: false as const, optional: false as const,
ref: 'User',
ref: 'User' as const,
},
assignee: {
type: 'object' as const,
nullable: true as const, optional: true as const,
ref: 'User',
ref: 'User' as const,
},
},
},

View File

@ -18,7 +18,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'User',
ref: 'User' as const,
properties: {
token: {
type: 'string' as const,

View File

@ -49,7 +49,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'DriveFile',
ref: 'DriveFile' as const,
},
},
};

View File

@ -14,16 +14,24 @@ export const meta = {
optional: false as const, nullable: false as const,
properties: {
deliver: {
ref: 'QueueCount',
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'QueueCount' as const,
},
inbox: {
ref: 'QueueCount',
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'QueueCount' as const,
},
db: {
ref: 'QueueCount',
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'QueueCount' as const,
},
objectStorage: {
ref: 'QueueCount',
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'QueueCount' as const,
},
},
},

View File

@ -58,7 +58,7 @@ export const meta = {
user: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'User',
ref: 'User' as const,
},
},
},

View File

@ -69,7 +69,7 @@ export const meta = {
items: {
type: 'object' as const,
nullable: false as const, optional: false as const,
ref: 'User',
ref: 'User' as const,
},
},
};

View File

@ -76,7 +76,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Antenna',
ref: 'Antenna' as const,
},
};

View File

@ -14,7 +14,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Antenna',
ref: 'Antenna' as const,
},
},
};

View File

@ -57,7 +57,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Note',
ref: 'Note' as const,
},
},
};

View File

@ -28,7 +28,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Antenna',
ref: 'Antenna' as const,
},
};

View File

@ -85,7 +85,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Antenna',
ref: 'Antenna' as const,
},
};

View File

@ -33,7 +33,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'App',
ref: 'App' as const,
},
};

View File

@ -16,7 +16,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'App',
ref: 'App' as const,
},
errors: {
@ -30,7 +30,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'App',
ref: 'App' as const,
},
};

View File

@ -34,7 +34,7 @@ export const meta = {
app: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'App',
ref: 'App' as const,
},
token: {
type: 'string' as const,

View File

@ -30,7 +30,7 @@ export const meta = {
user: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'User',
ref: 'User' as const,
},
},
},

View File

@ -48,7 +48,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'User',
ref: 'User' as const,
},
};

View File

@ -48,7 +48,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'User',
ref: 'User' as const,
},
};

View File

@ -32,7 +32,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Blocking',
ref: 'Blocking' as const,
},
},
};

View File

@ -30,7 +30,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Channel',
ref: 'Channel' as const,
},
errors: {

View File

@ -12,7 +12,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Channel',
ref: 'Channel' as const,
},
},
};

View File

@ -32,7 +32,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Channel',
ref: 'Channel' as const,
},
},
};

View File

@ -32,7 +32,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Channel',
ref: 'Channel' as const,
},
},
};

View File

@ -18,7 +18,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Channel',
ref: 'Channel' as const,
},
errors: {

View File

@ -44,7 +44,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Note',
ref: 'Note' as const,
},
},

View File

@ -32,7 +32,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Channel',
ref: 'Channel' as const,
},
errors: {

View File

@ -27,7 +27,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Clip',
ref: 'Clip' as const,
},
};

View File

@ -14,7 +14,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Clip',
ref: 'Clip' as const,
},
},
};

View File

@ -48,7 +48,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Note',
ref: 'Note' as const,
},
},
};

View File

@ -28,7 +28,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Clip',
ref: 'Clip' as const,
},
};

View File

@ -40,7 +40,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Clip',
ref: 'Clip' as const,
},
};

View File

@ -41,7 +41,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'DriveFile',
ref: 'DriveFile' as const,
},
},
};

View File

@ -23,7 +23,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Note',
ref: 'Note' as const,
},
},

View File

@ -48,7 +48,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'DriveFile',
ref: 'DriveFile' as const,
},
errors: {

View File

@ -21,7 +21,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'DriveFile',
ref: 'DriveFile' as const,
},
},
};

View File

@ -27,7 +27,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'DriveFile',
ref: 'DriveFile' as const,
},
},
};

View File

@ -25,7 +25,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'DriveFile',
ref: 'DriveFile' as const,
},
errors: {

View File

@ -62,7 +62,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'DriveFile',
ref: 'DriveFile' as const,
},
};

View File

@ -37,7 +37,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'DriveFolder',
ref: 'DriveFolder' as const,
},
},
};

View File

@ -35,7 +35,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'DriveFolder',
ref: 'DriveFolder' as const,
},
};

View File

@ -27,7 +27,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'DriveFolder',
ref: 'DriveFolder' as const,
},
},
};

View File

@ -20,7 +20,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'DriveFolder',
ref: 'DriveFolder' as const,
},
errors: {

View File

@ -49,7 +49,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'DriveFolder',
ref: 'DriveFolder' as const,
},
};

View File

@ -36,7 +36,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'DriveFile',
ref: 'DriveFile' as const,
},
},
};

View File

@ -34,7 +34,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Following',
ref: 'Following' as const,
},
},
};

View File

@ -34,7 +34,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Following',
ref: 'Following' as const,
},
},
};

View File

@ -59,7 +59,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'FederationInstance',
ref: 'FederationInstance' as const,
},
},
};

View File

@ -17,7 +17,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'FederationInstance',
ref: 'FederationInstance' as const,
},
};

View File

@ -34,7 +34,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'User',
ref: 'User' as const,
},
},
};

View File

@ -60,7 +60,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'User',
ref: 'User' as const,
},
};

View File

@ -48,7 +48,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'User',
ref: 'User' as const,
},
};

View File

@ -48,7 +48,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'User',
ref: 'User' as const,
},
};

View File

@ -36,7 +36,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'User',
ref: 'User' as const,
},
};

View File

@ -23,12 +23,12 @@ export const meta = {
follower: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'User',
ref: 'User' as const,
},
followee: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'User',
ref: 'User' as const,
},
},
},

View File

@ -12,7 +12,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'GalleryPost',
ref: 'GalleryPost' as const,
},
},
};

View File

@ -12,7 +12,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'GalleryPost',
ref: 'GalleryPost' as const,
},
},
};

View File

@ -28,7 +28,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'GalleryPost',
ref: 'GalleryPost' as const,
},
},
};

View File

@ -42,7 +42,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'GalleryPost',
ref: 'GalleryPost' as const,
},
errors: {

View File

@ -26,7 +26,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'GalleryPost',
ref: 'GalleryPost' as const,
},
};

View File

@ -45,7 +45,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'GalleryPost',
ref: 'GalleryPost' as const,
},
errors: {

View File

@ -52,7 +52,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Hashtag',
ref: 'Hashtag' as const,
},
},
};

View File

@ -18,7 +18,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Hashtag',
ref: 'Hashtag' as const,
},
errors: {

View File

@ -53,7 +53,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'User',
ref: 'User' as const,
},
},
};

View File

@ -11,7 +11,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'User',
ref: 'User' as const,
},
};

View File

@ -32,7 +32,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'NoteFavorite',
ref: 'NoteFavorite' as const,
},
},
};

View File

@ -38,7 +38,7 @@ export const meta = {
page: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'GalleryPost',
ref: 'GalleryPost' as const,
},
},
},

View File

@ -32,7 +32,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'GalleryPost',
ref: 'GalleryPost' as const,
},
},
};

View File

@ -60,7 +60,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Notification',
ref: 'Notification' as const,
},
},
};

View File

@ -38,7 +38,7 @@ export const meta = {
page: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Page',
ref: 'Page' as const,
},
},
},

View File

@ -32,7 +32,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Page',
ref: 'Page' as const,
},
},
};

View File

@ -41,7 +41,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'User',
ref: 'User' as const,
},
};

View File

@ -29,7 +29,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'User',
ref: 'User' as const,
},
};

View File

@ -164,7 +164,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'User',
ref: 'User' as const,
},
};

View File

@ -41,7 +41,7 @@ export const meta = {
group: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'UserGroup',
ref: 'UserGroup' as const,
},
},
},

View File

@ -29,7 +29,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'MessagingMessage',
ref: 'MessagingMessage' as const,
},
},
};

View File

@ -49,7 +49,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'MessagingMessage',
ref: 'MessagingMessage' as const,
},
},

View File

@ -36,7 +36,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'MessagingMessage',
ref: 'MessagingMessage' as const,
},
errors: {

View File

@ -32,7 +32,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Muting',
ref: 'Muting' as const,
},
},
};

View File

@ -48,7 +48,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Note',
ref: 'Note' as const,
},
},
};

View File

@ -39,7 +39,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Note',
ref: 'Note' as const,
},
},
};

View File

@ -23,7 +23,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Note',
ref: 'Note' as const,
},
},

View File

@ -33,7 +33,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Note',
ref: 'Note' as const,
},
},

View File

@ -119,7 +119,7 @@ export const meta = {
createdNote: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Note',
ref: 'Note' as const,
},
},
},

View File

@ -27,7 +27,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Note',
ref: 'Note' as const,
},
},
};

View File

@ -48,7 +48,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Note',
ref: 'Note' as const,
},
},

View File

@ -68,7 +68,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Note',
ref: 'Note' as const,
},
},

View File

@ -59,7 +59,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Note',
ref: 'Note' as const,
},
},

View File

@ -45,7 +45,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Note',
ref: 'Note' as const,
},
},
};

View File

@ -26,7 +26,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Note',
ref: 'Note' as const,
},
},
};

View File

@ -46,7 +46,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'NoteReaction',
ref: 'NoteReaction' as const,
},
},

View File

@ -39,7 +39,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Note',
ref: 'Note' as const,
},
},

View File

@ -37,7 +37,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Note',
ref: 'Note' as const,
},
},
};

View File

@ -61,7 +61,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Note',
ref: 'Note' as const,
},
},
};

View File

@ -55,7 +55,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Note',
ref: 'Note' as const,
},
},

View File

@ -19,7 +19,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Note',
ref: 'Note' as const,
},
errors: {

View File

@ -66,7 +66,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Note',
ref: 'Note' as const,
},
},
};

View File

@ -65,7 +65,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Note',
ref: 'Note' as const,
},
},

View File

@ -67,7 +67,7 @@ export const meta = {
res: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Page',
ref: 'Page' as const,
},
errors: {

View File

@ -12,7 +12,7 @@ export const meta = {
items: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Page',
ref: 'Page' as const,
},
},
};

Some files were not shown because too many files have changed in this diff Show More