mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-18 16:12:45 +01:00
53f3b779bf
* packedNotificationSchemaを更新 * read:gallery, write:gallery, read:gallery-likes, write:gallery-likesに翻訳を追加 * fix * add header, choice, invitation * test * fix * yatta * remove no longer needed "as PackedUser/PackedNote" * clean up * add simple-schema * fix lint * define items in full Schema * revert https://github.com/misskey-dev/misskey/pull/7772#discussion_r706627736 * user packとnote packの型不整合を修正
15 lines
369 B
TypeScript
15 lines
369 B
TypeScript
export interface SimpleSchema {
|
|
type: 'boolean' | 'number' | 'string' | 'array' | 'object' | 'any';
|
|
nullable: boolean;
|
|
optional: boolean;
|
|
items?: SimpleSchema;
|
|
properties?: SimpleObj;
|
|
description?: string;
|
|
example?: any;
|
|
format?: string;
|
|
ref?: string;
|
|
enum?: string[];
|
|
default?: boolean | null;
|
|
}
|
|
|
|
export interface SimpleObj { [key: string]: SimpleSchema; }
|