avatarURL should be nullable AND optional

This commit is contained in:
Oliver Bryan
2026-01-17 22:19:25 +00:00
parent e2560b089b
commit f7c65ce4c8
2 changed files with 7 additions and 2 deletions

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().nullable(),
avatarURL: z.string().url().nullable().optional(),
});
export type RegisterRequest = z.infer<typeof RegisterRequestSchema>;