Move booleanSchema to sanitizedSchema - fix default value

This commit is contained in:
carlosmonastyrski
2025-03-21 18:35:32 -03:00
parent d918dd8967
commit 52bd1afb0a
2 changed files with 2 additions and 2 deletions
@@ -81,7 +81,7 @@ export const booleanSchema = z
return value; return value;
}) })
.optional() .optional()
.default(false); .default(true);
export const sapPubSchema = SecretApprovalPoliciesSchema.merge( export const sapPubSchema = SecretApprovalPoliciesSchema.merge(
z.object({ z.object({
@@ -350,7 +350,7 @@ export const registerSecretFolderRouter = async (server: FastifyZodProvider) =>
.transform(prefixWithSlash) .transform(prefixWithSlash)
.transform(removeTrailingSlash) .transform(removeTrailingSlash)
.describe(FOLDERS.LIST.directory), .describe(FOLDERS.LIST.directory),
recursive: booleanSchema.describe(FOLDERS.LIST.recursive) recursive: booleanSchema.default(false).describe(FOLDERS.LIST.recursive)
}), }),
response: { response: {
200: z.object({ 200: z.object({