summaryrefslogtreecommitdiff
path: root/packages/backend/src/misc/json-schema.ts
diff options
context:
space:
mode:
authoryukineko <27853966+hideki0403@users.noreply.github.com>2024-02-02 12:47:07 +0900
committerGitHub <noreply@github.com>2024-02-02 12:47:07 +0900
commitd8bdbd53ed9366b6578c0f2f2a44c5efa4b887a9 (patch)
tree5ba19f76271edc4fecd345d9e1db2529182de399 /packages/backend/src/misc/json-schema.ts
parentUpdate deploy-test-environment.yml (#13136) (diff)
downloadsharkey-d8bdbd53ed9366b6578c0f2f2a44c5efa4b887a9.tar.gz
sharkey-d8bdbd53ed9366b6578c0f2f2a44c5efa4b887a9.tar.bz2
sharkey-d8bdbd53ed9366b6578c0f2f2a44c5efa4b887a9.zip
fix: api-docが開けない問題を修正 (#13132)
* refactor: 自己参照を使用している箇所に`selfRef`を持たせるように * feat: スキーマ生成時に自己参照を含むかどうかを指定できるように * fix: api.jsonにselfRefが含まれているのを修正 * refactor: 他の箇所と同様にselfRefの除去を行うように * remove: 不要なimportを削除
Diffstat (limited to 'packages/backend/src/misc/json-schema.ts')
-rw-r--r--packages/backend/src/misc/json-schema.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/backend/src/misc/json-schema.ts b/packages/backend/src/misc/json-schema.ts
index 0dd8f15d9a..dc29003681 100644
--- a/packages/backend/src/misc/json-schema.ts
+++ b/packages/backend/src/misc/json-schema.ts
@@ -119,6 +119,7 @@ export interface Schema extends OfSchema {
readonly example?: any;
readonly format?: string;
readonly ref?: keyof typeof refs;
+ readonly selfRef?: boolean;
readonly enum?: ReadonlyArray<string | null>;
readonly default?: (this['type'] extends TypeStringef ? StringDefToType<this['type']> : any) | null;
readonly maxLength?: number;