modify the name field to a minimum of 2 characters

This commit is contained in:
tsp36
2024-02-21 09:40:57 +08:00
parent c806dc890a
commit 33168aa535

View File

@ -15,7 +15,7 @@ export const usernameSchema = z
export const userSchema = z.object({
id: idSchema,
name: z.string().min(3).max(255),
name: z.string().min(2).max(255),
picture: z.literal("").or(z.null()).or(z.string().url()),
username: usernameSchema,
email: z.string().email(),