···11-import { z } from "zod";
11+import { z } from "zod/v4";
2233export const educationFormSchema = z
44 .object({
···1111 .string()
1212 .max(200, "Field of study must be less than 200 characters")
1313 .optional(),
1414- startDate: z.date({ required_error: "Start date is required" }).nullable(),
1414+ startDate: z.date({ error: "Start date is required" }).nullable(),
1515 endDate: z.date().optional().nullable(),
1616 description: z.string().optional(),
1717 isCurrentEducation: z.boolean().default(false),