Merge pull request #1785 from tsp36/feat/chinese_name

modify the name field to a minimum of 2 characters
This commit is contained in:
Amruth Pillai
2024-03-10 10:21:07 +01:00
committed by GitHub
+1 -1
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(1).max(255),
picture: z.literal("").or(z.null()).or(z.string().url()),
username: usernameSchema,
email: z.string().email(),