About 15,400 results
Open links in new tab
  1. Intro | Zod

    Introduction ... Using Zod, you can define schemas you can use to validate data, from a simple string to a complex nested object.

  2. Intro | Zod

    Introduction to Zod - TypeScript-first schema validation library with static type inference

  3. Basic usage | Zod

    For complete documentation on Zod's schema API, refer to Defining schemas. Defining a schema ... Zod Zod Mini

  4. Defining schemas | Zod

    Complete API reference for all Zod schema types, methods, and validation features

  5. Release notes | Zod

    Zod 4 release notes and new features including performance improvements and breaking changes

  6. Zod | Zod

    The zod/v4 package is the "flagship" library of the Zod ecosystem. ... If you have uncommonly strict constraints around bundle size, consider Zod Mini.

  7. JSON Schema | Zod

    In other cases, you may have a set of Zod schemas you'd like to represent using multiple interlinked JSON Schemas, perhaps to write to .json files and serve from a web server.

  8. Zod Mini

    Zod Mini implements the exact same functionality as zod, but using a functional, tree-shakable API. If you're coming from zod, this means you generally will use functions in place of methods.

  9. Versioning | Zod

    Jul 8, 2025 · If I naively published [email protected] to npm, the vast majority of the libraries in Zod's ecosystem would need to publish a new major version to properly support Zod 4, include some …

  10. Codecs | Zod

    To avoid unexpected errors in your custom .refine() logic, Zod performs two "passes" during z.encode(). The first pass ensures the input type conforms to the expected type (no …