Zod
- Category
- Frameworks and libraries
- Docs outline
- 9 sections
Official docs outline
zod.dev- Basic usage
Defining a schema, parse, safeParse, async parsing, and inferring TypeScript types with z.infer.
- Defining schemas
Primitives, objects, arrays, unions, enums, refinements, transforms, defaults, optionals and coercion.
- Customizing errors
Custom error messages and error maps.
- Formatting errors
ZodError, flatten, treeifyError and prettifyError.
- Metadata and registries
Schema metadata, descriptions and registries.
- JSON Schema
Converting Zod schemas to and from JSON Schema.
- Codecs
Bidirectional transforms with encode and decode.
- Ecosystem
Integrations: form libraries, tRPC and OpenAPI generators.
- For library authors
Building libraries on Zod and peer dependencies.
Each section links to the official page. Titles and summaries by Extra Credit; the docs belong to their authors.