Migrating to Zod v3.25.35
Version v3.25.35 introduces 1 breaking change. This guide details how to update your code.
Released: 5/29/2025
1
Breaking Changes
1
Migration Steps
3
Affected Symbols
⚠️ Check Your Code
If you use any of these symbols, you need to read this guide:
isPlainObjectz.discriminatedUnionz.transformBreaking Changes
●Issue #1
JSON Schema generation for transforming schemas no longer includes default values, which may affect tools relying on these defaults for validation or UI generation.
Migration Steps
- 1If your workflow relies on default values within JSON Schemas for transforming schemas, manually verify the output of .jsonSchema() after upgrading.
Release Summary
Version 3.25.35 improves discriminated union handling, fixes the isPlainObject utility, and removes default values from JSON Schemas for transforming schemas.
Need More Details?
View the full release notes and all changes for Zod v3.25.35.
View Full Changelog