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
- Maintenance status: The GitHub repo shows a recent upstream push (2026-03-27), which suggests development activity, but the latest published updates in the provided history are from 2023-02-10 (v3.20.3), indicating slow or intermittent release publishing.
- Update cadence: Published updates appear infrequent after 2023 (based on the provided versions), and there is a multi-year gap between the last listed update and today (2026-06-09). The 2026 upstream push implies changes may be happening without corresponding published updates in this snippet.
AI summary generated
Recent updates
3.20.3
Release 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
Version 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
Release 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
Release 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
Release 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
Release 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.