# What changed in nestjs-zod

> 11 changes in nestjs-zod 5 from its official release notes, upgrade guides and advisories: 2 breaking. Each one cited. Sources checked 2026-10-21. HTML: https://unstale.sh/npm/nestjs-zod/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## nestjs-zod 5

### Breaking changes

- Adds a check to ensure @Res() is not used without passthrough: true. (5.5.0) — [release notes](https://github.com/BenLorantfy/nestjs-zod/releases/tag/v5.5.0)
- OpenAPI 3.0 schemas no longer include `id`. (5.3.0) — [release notes](https://github.com/BenLorantfy/nestjs-zod/releases/tag/v5.3.0)

### Fixes and other changes

- Fixes a bug with named schemas when using zod ≥ 4.4. (5.5.0) — [release notes](https://github.com/BenLorantfy/nestjs-zod/releases/tag/v5.5.0)
- Cleans up parent-metadata and parent-additional-properties from query params. (5.5.0) — [release notes](https://github.com/BenLorantfy/nestjs-zod/releases/tag/v5.5.0)
- Nullable enums include null in the enum array when generating OpenAPI 3.0. (5.4.0) — [release notes](https://github.com/BenLorantfy/nestjs-zod/releases/tag/v5.4.0)
- Converts exclusiveMaximum for OpenAPI 3.0. (5.4.0) — [release notes](https://github.com/BenLorantfy/nestjs-zod/releases/tag/v5.4.0)
- Converts exclusiveMinimum for OpenAPI 3.0. (5.4.0) — [release notes](https://github.com/BenLorantfy/nestjs-zod/releases/tag/v5.4.0)
- Converts propertyNames for OpenAPI 3.0. (5.4.0) — [release notes](https://github.com/BenLorantfy/nestjs-zod/releases/tag/v5.4.0)
- Optional object properties are removed from the required array when using @nestjs/swagger v7. (5.4.0) — [release notes](https://github.com/BenLorantfy/nestjs-zod/releases/tag/v5.4.0)
- Removes the prefix from parameter schemas for strict objects. (5.4.0) — [release notes](https://github.com/BenLorantfy/nestjs-zod/releases/tag/v5.4.0)
- Fixes broken deep imports, so developers can use deep import paths reliably. (5.3.0) — [release notes](https://github.com/BenLorantfy/nestjs-zod/releases/tag/v5.3.0)
