From 4a32bd7104b158e8e470d097179928d24319617f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E7=AB=A5=E5=B4=87?= <792998983@qq.com> Date: Wed, 3 Apr 2024 18:53:46 +0800 Subject: [PATCH] =?UTF-8?q?fix(cli):=20=E5=85=BC=E5=AE=B9=E6=97=A7?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E8=87=AA=E5=AE=9A=E4=B9=89=E8=AE=A4=E8=AF=81?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E9=85=8D=E7=BD=AE=20(#1192)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 之前修改自定义认证系统时,未能兼容旧版本自定义认证系统配置,现去掉cli中InstallConfigSchema的auth.custom.type的默认值,使其可以兼容旧版本自定义认证系统配置 --- .changeset/olive-rivers-camp.md | 5 +++++ apps/cli/src/config/install.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/olive-rivers-camp.md diff --git a/.changeset/olive-rivers-camp.md b/.changeset/olive-rivers-camp.md new file mode 100644 index 0000000000..1bde5a6a27 --- /dev/null +++ b/.changeset/olive-rivers-camp.md @@ -0,0 +1,5 @@ +--- +"@scow/cli": patch +--- + +兼容旧版本自定义认证系统配置 diff --git a/apps/cli/src/config/install.ts b/apps/cli/src/config/install.ts index dd9ea7f6b6..87130cfed4 100644 --- a/apps/cli/src/config/install.ts +++ b/apps/cli/src/config/install.ts @@ -99,7 +99,7 @@ export const InstallConfigSchema = Type.Object({ })), custom: Type.Optional(Type.Object({ - type: Type.Optional(Type.Enum(AuthCustomType, { description: "自定义认证系统类型", default: AuthCustomType.image })), + type: Type.Optional(Type.Enum(AuthCustomType, { description: "自定义认证系统类型" })), external: Type.Optional(Type.Object({ url: Type.String({ description: "认证系统的 URL" }), })),