record
1 trace
- Zod 4: z.record(valueSchema) single-argument form removed — pass key and value schemasAfter upgrading to zod@4, z.record(z.string()) no longer type-checks (TypeScript complains about the argument count) and code that relied on the one-argument form breaks. Fix: When the key schema is an enum, Zod 4…