zod-openapi breaking changes
zod-openapi 6.0.0 (June 14, 2026) is its newest release with breaking changes, 12 of them. The first: zod-openapi 6.0.0 requires Node.js 22.14.0 or later. Every breaking API change we have recorded in zod-openapi on npm: 12 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 6.0.3, released November 24, 2026. Source repository
Its 6.0.0 release requires Node.js 22.14.0 or later. Node.js end of life dates.
zod-openapi 6.0.0 breaking changes
- Removed
Node 20 is no longer supported. Users must run on Node 22.14.0 or later. github.com - Removed
Zod 3 is no longer supported. The minimum supported Zod version is now 4.0.0, so projects on Zod 3 must upgrade. github.com - Signature changed
createDocument
createDocument now returns oas32.OpenAPIObject instead of oas31.OpenAPIObject. Code that relies on the 3.1 return type must be updated. github.com - Signature changed
createSchema
Was const createSchema: (schema: core.$ZodType, ctx?: {registry?: ComponentRegistry; io?: "input" | "output"; opts?: CreateDocumentOptions; schemaComponents?: ZodOpenApiComponentsObject["schemas"]; schemaRefPath?: string; openapiVersion?... npmjs.com - Signature changed
oas31.ServerObject
Was interface ServerObject extends ISpecificationExtension; now interface ServerObject$1 extends ISpecificationExtension. npmjs.com - Signature changed
SchemaResult.components
Was components: Record<string, SchemaObject>; now components: Record<string, SchemaObject$1>. npmjs.com - Signature changed
SchemaResult.schema
Was schema: SchemaObject | ReferenceObject; now schema: SchemaObject$1 | ReferenceObject$1. npmjs.com - Signature changed
ZodOpenApiMediaTypeObject
Was interface ZodOpenApiMediaTypeObject extends Omit<MediaTypeObject, 'schema'>; now interface ZodOpenApiMediaTypeObject extends Omit<MediaTypeObject, 'schema' | 'itemSchema' | 'encoding' | 'prefixEncoding' | 'itemEncoding'>. npmjs.com - Signature changed
ZodOpenApiMediaTypeObject.encoding
Was encoding?: EncodingObject; now encoding?: ZodOpenApiEncodingObject. npmjs.com - Signature changed
ZodOpenApiPathItemObject
Was interface ZodOpenApiPathItemObject extends Omit<PathItemObject, 'get' | 'put' | 'post' | 'delete' | 'options' | 'head' | 'patch' | 'trace'>; now interface ZodOpenApiPathItemObject extends Omit<PathItemObject, 'get' | 'put' | 'post' |... npmjs.com - Signature changed
ZodOpenApiPathItemObject.parameters
Was parameters?: (ParameterObject | ReferenceObject)[]; now parameters?: Array<$ZodType | ParameterObject | ReferenceObject>. npmjs.com - Signature changed
ZodOpenApiResponseObject.description
Was description: string; now description?: string. npmjs.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.