refactor: remove zod.trim() validators

This commit is contained in:
Fu Diwei
2025-06-15 21:40:21 +08:00
parent 0434f95a1e
commit e7ce12772a
119 changed files with 174 additions and 361 deletions

View File

@@ -28,12 +28,10 @@ const AccessFormVercelConfig = ({ form: formInst, formName, disabled, initialVal
apiAccessToken: z
.string()
.min(1, t("access.form.vercel_api_access_token.placeholder"))
.max(256, t("common.errmsg.string_max", { max: 256 }))
.trim(),
.max(256, t("common.errmsg.string_max", { max: 256 })),
teamId: z
.string()
.max(256, t("common.errmsg.string_max", { max: 256 }))
.trim()
.nullish(),
});
const formRule = createSchemaFieldRule(formSchema);