Closed gihanrangana closed 3 months ago
i have zod object like this
const schema = z.object({ firstName: z.string().optional(), lastName: z.string().optional(), email: z.string().email().describe('unique'), username: z.string().min(3).max(20).describe('unique'), password: z.string(), roles: z.array(z.string()).default(['user']) });
the default value for roles is not assigning
Hi! This feature is to come with the version 2.0.0 asap
i have zod object like this
the default value for roles is not assigning