Converts Zod schemas into JSON Schema (including support for schema types, validations, recursive schemas via internal $ref, and options for naming and $ref handling). It is useful if you need to generate JSON Schema definitions from Zod types, including targeting OpenAPI 3.0 or OpenAI strict mode variants.
Project status
- Actively maintained: the upstream repo shows a last push on 2026-03-27, but the provided recent update summaries only cover versions up to 3.20.3 (2023-02-10).
- Apparent update cadence from the provided evidence: 3.20.0 (2022-12-15), then 3.20.1 (2022-12-16, about 1 day later), then 3.20.3 (2023-02-10, about 2 months later), followed by a long gap in the supplied list.
AI summary generated Today
Recent updates
3.20.3
2/10/2023Release 3.20.3 has no publisher release notes. The code diff indicates a TypeScript type refactor to make output types target-specific (jsonSchema7 vs openApi3), plus a small functional addition for Zod string validation kind "cuid2". Dev dependency versions were also bumped and test snapshots were updated accordingly.
Features3.20.1
12/16/2022Version 3.20.1 primarily standardizes the casing of the internal Refs helper module imports (switching imports from `./refs` to `./Refs`) across the library and tests. The only other change visible in the diff is the package version bump to 3.20.1 in `package.json` and `package-lock.json`. Release notes were not provided by the publisher for this release.
3.20.0
12/15/2022Release 3.20.0 includes a large internal refactor of how Zod definitions are tracked and converted into JSON Schema. The code adds support for new Zod 3.20 constructs (catch and pipeline) and introduces optional structured error message output, along with expanded string validation handling (for example, datetime and length). No release notes were provided by the publisher for this version, so all behavioral and API-impacting changes below are effectively undocumented here.
Features3.19.0
11/21/2022Release 3.19.0 has extremely minimal release notes (only a contributor acknowledgment), but the code changes include a notable update to native enum parsing plus dependency and build-process changes. The native enum parser logic was rewritten and new tests were added to support converting Zod native enum definitions created from const-asserted objects.
Breaking3.18.1
10/4/2022Release 3.18.1 introduces a new `strictUnions` option to control whether “any-like” union members are scrubbed, and it adds support for Zod branded types. The release notes provided by the publisher are empty, so the main behavior and API changes need to be inferred from the code diff.
Features3.17.1
8/29/2022Release 3.17.1 appears to be focused on enabling a Deno release distribution. The provided release notes are minimal and do not describe specific API changes, bug fixes, or migration steps.