npm / nestjs-zod
nestjs-zod
What changed in nestjs-zod 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-21.
2 breaking9 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initnestjs-zod 511 changes
Breaking changes 2
Adds a check to ensure @Res() is not used without passthrough: true.
OpenAPI 3.0 schemas no longer include
id.
Fixes and other changes 9
Fixes a bug with named schemas when using zod ≥ 4.4.
Cleans up parent-metadata and parent-additional-properties from query params.
Nullable enums include null in the enum array when generating OpenAPI 3.0.
Converts exclusiveMaximum for OpenAPI 3.0.
Converts exclusiveMinimum for OpenAPI 3.0.
Converts propertyNames for OpenAPI 3.0.
Optional object properties are removed from the required array when using @nestjs/swagger v7.
Removes the prefix from parameter schemas for strict objects.
Fixes broken deep imports, so developers can use deep import paths reliably.