Update libs/dto/src/user/user.ts

This commit is contained in:
Amruth Pillai
2024-03-10 10:21:01 +01:00
committed by GitHub
parent 33168aa535
commit 8fc3c25714

View File

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