Zod v3 Documentation
Zod is a TypeScript-first schema declaration and validation library designed to be developer-friendly. With Zod, you declare a validator once and Zod automatically infers the static TypeScript type. It eliminates duplicative type declarations and makes it easy to compose simpler types into complex data structures.
Quick Reference
| File | Title | Description |
|---|
contents/README.md | Main Documentation | Comprehensive API reference covering primitives, objects, arrays, unions, refinements, transformers, and all Zod features |
contents/ERROR_HANDLING.md | Error Handling Guide | Explains ZodError and ZodIssue types, error formatting, and customization with error maps |
contents/MIGRATION.md | Migration Guide | Steps for upgrading from Zod 1→2 and Zod 2→3, including breaking changes and new features |
|