fix: update minimum length requirements for fullname and username in profile update validation
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import * as z from 'zod';
|
||||
|
||||
export const ZUpdateProfile = z.object({
|
||||
fullname: z.string().min(5).optional(),
|
||||
username: z.string().min(5).optional(),
|
||||
fullname: z.string().min(3).optional(),
|
||||
username: z.string().min(3).optional(),
|
||||
locale: z.enum(['en', 'hi', 'fr', 'pt', 'de', 'vi', 'ru', 'es', 'pl', 'da']).optional(),
|
||||
avatarUrl: z.url().optional()
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user