We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c64e60 commit a6556a5Copy full SHA for a6556a5
1 file changed
apps/sim/lib/api/contracts/tools/file.ts
@@ -37,7 +37,7 @@ export const fileManageMoveBodySchema = z.object({
37
operation: z.literal('move'),
38
workspaceId: z.string().min(1).optional(),
39
fileId: z.string().min(1, 'fileId is required for move operation'),
40
- targetFolder: z.string(), // empty string = workspace root, "reports" or "reports/Q1" for nested
+ targetFolder: z.string().optional().default(''), // empty string = workspace root, "reports" or "reports/Q1" for nested
41
})
42
43
export type FileManageMoveBody = z.input<typeof fileManageMoveBodySchema>
0 commit comments