We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d5656a commit da185e6Copy full SHA for da185e6
apps/sim/app/api/workspaces/[id]/route.ts
@@ -20,7 +20,13 @@ const patchWorkspaceSchema = z.object({
20
.string()
21
.regex(/^#[0-9a-fA-F]{6}$/)
22
.optional(),
23
- logoUrl: z.string().min(1).nullable().optional(),
+ logoUrl: z
24
+ .string()
25
+ .refine((val) => val.startsWith('/') || val.startsWith('https://'), {
26
+ message: 'Logo URL must be an absolute path or HTTPS URL',
27
+ })
28
+ .nullable()
29
+ .optional(),
30
billedAccountUserId: z.string().optional(),
31
allowPersonalApiKeys: z.boolean().optional(),
32
})
0 commit comments