mirror of
https://github.com/Infisical/infisical.git
synced 2026-01-10 07:58:15 -05:00
Move booleanSchema to sanitizedSchema - fix default value
This commit is contained in:
@@ -81,7 +81,7 @@ export const booleanSchema = z
|
||||
return value;
|
||||
})
|
||||
.optional()
|
||||
.default(false);
|
||||
.default(true);
|
||||
|
||||
export const sapPubSchema = SecretApprovalPoliciesSchema.merge(
|
||||
z.object({
|
||||
|
||||
@@ -350,7 +350,7 @@ export const registerSecretFolderRouter = async (server: FastifyZodProvider) =>
|
||||
.transform(prefixWithSlash)
|
||||
.transform(removeTrailingSlash)
|
||||
.describe(FOLDERS.LIST.directory),
|
||||
recursive: booleanSchema.describe(FOLDERS.LIST.recursive)
|
||||
recursive: booleanSchema.default(false).describe(FOLDERS.LIST.recursive)
|
||||
}),
|
||||
response: {
|
||||
200: z.object({
|
||||
|
||||
Reference in New Issue
Block a user