From 993e3d79dfa6ff5552cafc3e9c8c65c5c69a5b12 Mon Sep 17 00:00:00 2001 From: Aman Varshney Date: Fri, 29 Aug 2025 00:33:02 +0530 Subject: [PATCH] fix: add correct auth type in generate schema script --- apps/web/scripts/generate-schema.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/web/scripts/generate-schema.ts b/apps/web/scripts/generate-schema.ts index 6d992b1..6487101 100644 --- a/apps/web/scripts/generate-schema.ts +++ b/apps/web/scripts/generate-schema.ts @@ -5,6 +5,7 @@ import { join } from "node:path"; import { AddonsSchema, APISchema, + AuthSchema, BackendSchema, DatabaseSchema, DatabaseSetupSchema, @@ -29,6 +30,7 @@ const DATABASE_SETUP_VALUES = DatabaseSetupSchema.options; const API_VALUES = APISchema.options; const WEB_DEPLOY_VALUES = WebDeploySchema.options; const SERVER_DEPLOY_VALUES = ServerDeploySchema.options; +const AUTH_VALUES = AuthSchema.options; const configSchema = { $schema: "http://json-schema.org/draft-07/schema#", @@ -96,8 +98,9 @@ const configSchema = { description: ExamplesSchema.description, }, auth: { - type: "boolean", - description: "Whether authentication is enabled", + type: "string", + enum: AUTH_VALUES, + description: AuthSchema.description, }, packageManager: { type: "string",