mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
fix: add correct auth type in generate schema script
This commit is contained in:
@@ -5,6 +5,7 @@ import { join } from "node:path";
|
|||||||
import {
|
import {
|
||||||
AddonsSchema,
|
AddonsSchema,
|
||||||
APISchema,
|
APISchema,
|
||||||
|
AuthSchema,
|
||||||
BackendSchema,
|
BackendSchema,
|
||||||
DatabaseSchema,
|
DatabaseSchema,
|
||||||
DatabaseSetupSchema,
|
DatabaseSetupSchema,
|
||||||
@@ -29,6 +30,7 @@ const DATABASE_SETUP_VALUES = DatabaseSetupSchema.options;
|
|||||||
const API_VALUES = APISchema.options;
|
const API_VALUES = APISchema.options;
|
||||||
const WEB_DEPLOY_VALUES = WebDeploySchema.options;
|
const WEB_DEPLOY_VALUES = WebDeploySchema.options;
|
||||||
const SERVER_DEPLOY_VALUES = ServerDeploySchema.options;
|
const SERVER_DEPLOY_VALUES = ServerDeploySchema.options;
|
||||||
|
const AUTH_VALUES = AuthSchema.options;
|
||||||
|
|
||||||
const configSchema = {
|
const configSchema = {
|
||||||
$schema: "http://json-schema.org/draft-07/schema#",
|
$schema: "http://json-schema.org/draft-07/schema#",
|
||||||
@@ -96,8 +98,9 @@ const configSchema = {
|
|||||||
description: ExamplesSchema.description,
|
description: ExamplesSchema.description,
|
||||||
},
|
},
|
||||||
auth: {
|
auth: {
|
||||||
type: "boolean",
|
type: "string",
|
||||||
description: "Whether authentication is enabled",
|
enum: AUTH_VALUES,
|
||||||
|
description: AuthSchema.description,
|
||||||
},
|
},
|
||||||
packageManager: {
|
packageManager: {
|
||||||
type: "string",
|
type: "string",
|
||||||
|
|||||||
Reference in New Issue
Block a user