/** * Findings: S-01 (data minimisation), S-09 (URL rules), A-01 (defaults and cross-field rules) * * One schema, imported by both the client form and the server handler, so the * browser and the API can never disagree about what "valid" means. * * Compared with the live form, this schema: * - drops date of birth, gender and permanent address (collect at offer stage if needed) * - merges phone + WhatsApp into one number and a boolean * - makes every select start empty, so "required" really means the applicant chose * - validates score ranges against the score system and years against status * - only accepts https URLs, and LinkedIn URLs that point at a profile */ import { z } from "zod"; const CURRENT_YEAR = new Date().getFullYear(); // Empty string from an untouched