avatarURL should be nullable

This commit is contained in:
Oliver Bryan
2026-01-16 22:55:57 +00:00
parent b25f8ff96e
commit 28d464299f

View File

@@ -43,7 +43,7 @@ export const RegisterRequestSchema = z.object({
.regex(/[A-Z]/, "password must contain an uppercase letter")
.regex(/[a-z]/, "password must contain a lowercase letter")
.regex(/[0-9]/, "password must contain a number"),
avatarURL: z.string().url().optional(),
avatarURL: z.string().url().nullable(),
});
export type RegisterRequest = z.infer<typeof RegisterRequestSchema>;