Migrating to Zod v3.25.25
Version v3.25.25 introduces 1 breaking change. This guide details how to update your code.
Released: 5/23/2025
1
Breaking Changes
1
Migration Steps
1
Affected Symbols
⚠️ Check Your Code
If you use any of these symbols, you need to read this guide:
io:outputBreaking Changes
●Issue #1
Objects in 'io:output' mode now have 'additionalProperties: false' applied by default, which may cause validation failures if unexpected fields are returned.
Migration Steps
- 1If your output objects rely on dynamic or unknown fields, explicitly set 'additionalProperties: true' in your schema definitions for 'io:output' mode.
Release Summary
This release introduces stricter schema validation for output objects by defaulting 'additionalProperties' to false and includes new documentation for Zod Core parsing.
Need More Details?
View the full release notes and all changes for Zod v3.25.25.
View Full Changelog