openapi-typescript breaking changes
openapi-typescript 7.0.0 (June 20, 2024) is its newest release with breaking changes, 39 of them. The first: Removes globbing of schema files in openapi-typescript 7.0.0. Every breaking API change we have recorded in openapi-typescript on npm: 129 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 7.13.0, released February 11, 2026.
Packages on npm run on Node.js. Node.js end of life dates.
- From 6.0.0 to 7.0.0: 51 breaking changes in 2 versions.
- From 5.0.0 to 7.0.0: 128 breaking changes in 3 versions.
openapi-typescript 7.0.0 breaking changes
- Removed
Specify multiple schemas and their outputs in a redocly.yaml config instead of using glob patterns. github.com - Removed
--auth
Auth options must now be set in a redocly.yaml config under the http setting. github.com - Removed
--httpHeaders
Set HTTP headers in a redocly.yaml config under the http setting instead. github.com - Removed
--httpMethod
Configure this through a redocly.yaml config instead. github.com - Removed
external
Remote schemas are now flattened into the components object, and some referenced schema names may have changed. github.com - Removed
Fetch
Fetch was removed in openapi-typescript 7.0.0 npmjs.com - Removed
GlobalContext.cwd
GlobalContext.cwd was removed in openapi-typescript 7.0.0 npmjs.com - Removed
GlobalContext.immutableTypes
GlobalContext.immutableTypes was removed in openapi-typescript 7.0.0 npmjs.com - Removed
GlobalContext.indentLv
GlobalContext.indentLv was removed in openapi-typescript 7.0.0 npmjs.com - Removed
GlobalContext.operations
GlobalContext.operations was removed in openapi-typescript 7.0.0 npmjs.com - Removed
GlobalContext.parameters
GlobalContext.parameters was removed in openapi-typescript 7.0.0 npmjs.com - Removed
GlobalContext.supportArrayLength
GlobalContext.supportArrayLength was removed in openapi-typescript 7.0.0 npmjs.com - Removed
OpenAPITSOptions.auth
OpenAPITSOptions.auth was removed in openapi-typescript 7.0.0 npmjs.com - Removed
OpenAPITSOptions.commentHeader
OpenAPITSOptions.commentHeader was removed in openapi-typescript 7.0.0 npmjs.com - Removed
OpenAPITSOptions.fetch
The fetch option is gone from the Node.js API. Set your fetch client in a redocly.yaml config instead. npmjs.com - Removed
OpenAPITSOptions.httpHeaders
OpenAPITSOptions.httpHeaders was removed in openapi-typescript 7.0.0 npmjs.com - Removed
OpenAPITSOptions.httpMethod
OpenAPITSOptions.httpMethod was removed in openapi-typescript 7.0.0 npmjs.com - Removed
OpenAPITSOptions.immutableTypes
OpenAPITSOptions.immutableTypes was removed in openapi-typescript 7.0.0 npmjs.com - Removed
OpenAPITSOptions.inject
OpenAPITSOptions.inject was removed in openapi-typescript 7.0.0 npmjs.com - Removed
OpenAPITSOptions.supportArrayLength
OpenAPITSOptions.supportArrayLength was removed in openapi-typescript 7.0.0 npmjs.com - Removed
Subschema
Subschema was removed in openapi-typescript 7.0.0 npmjs.com - Renamed
--immutable-types
Use --immutable in place of --immutable-types. github.com - Renamed
--support-array-length
Use --array-length in place of --support-array-length. github.com - Behavior changed
Generated operation ID names change where the original ID contained # characters, so references to them must be updated. github.com - Behavior changed
Keys of the Components Object and HTTP methods now always appear in types, typed as :never when absent. Code checking for their absence must change. github.com - Behavior changed
transform
The main method, transform() and postTransform() now return a TypeScript AST. Code that returns strings from these must build nodes with the typescript compiler API instead. github.com - Default changed
defaultNonNullable
Set defaultNonNullable to false explicitly to keep the previous behavior. github.com - Configuration changed
TypeScript must be installed alongside openapi-typescript. github.com - Signature changed
ArraySubtype.type
Was type: "array"; now type: "array" | ["array", "null"]. npmjs.com - Signature changed
BooleanSubtype.type
Was type: "boolean"; now type: "boolean" | ["boolean", "null"]. npmjs.com - Signature changed
default
Was function openapiTS(schema: string | URL | OpenAPI3 | Readable, options?: OpenAPITSOptions): Promise<string>; now function openapiTS(source: string | URL | OpenAPI3 | Buffer | Readable, options?: OpenAPITSOptions): Promise<ts.Node[]>. npmjs.com - Signature changed
GlobalContext.discriminators
Was discriminators: {[$ref: string]: DiscriminatorObject;}; now discriminators: {objects: Record<string, DiscriminatorObject>; refsHandled: string[];}. npmjs.com - Signature changed
IntegerSubtype.type
Was type: "integer"; now type: "integer" | ["integer", "null"]. npmjs.com - Signature changed
NumberSubtype.type
Was type: "number"; now type: "number" | ["number", "null"]. npmjs.com - Signature changed
OpenAPITSOptions.postTransform
Was postTransform?: (type: string, options: TransformSchemaObjectOptions) => string | undefined; now postTransform?: (type: ts.TypeNode, options: TransformNodeOptions) => ts.TypeNode | undefined. npmjs.com - Signature changed
OpenAPITSOptions.transform
Was transform?: (schemaObject: SchemaObject, options: TransformSchemaObjectOptions) => string | undefined; now transform?: (schemaObject: SchemaObject, options: TransformNodeOptions) => ts.TypeNode | TransformObject | undefined. npmjs.com - Signature changed
OperationObject.parameters
Was parameters?: ParameterObject | (ParameterObject | ReferenceObject)[]; now parameters?: (ParameterObject | ReferenceObject)[]. npmjs.com - Signature changed
SchemaObject
Was type SchemaObject = {discriminator?: DiscriminatorObject; xml?: XMLObject; externalDocs?: ExternalDocumentationObject; example?: any; title?: string; description?: string; $comment?: string; deprecated?: boolean; readOnly?: boolean... npmjs.com - Signature changed
StringSubtype.type
Was type: "string"; now type: "string" | ["string", "null"]. npmjs.com
openapi-typescript 7.0.0-rc.0 breaking changes
- Removed
Passing glob patterns as schemas is no longer supported. List multiple schemas with outputs in a redocly.yaml config. github.com - Removed
--auth
The auth option is gone from the CLI and Node.js API. Set auth in a redocly.yaml config under the http setting instead. github.com - Removed
--httpHeaders
The httpHeaders option is gone from the CLI and Node.js API. Set headers in a redocly.yaml config instead. github.com - Removed
--httpMethod
The httpMethod option is gone from the CLI and Node.js API. Configure requests in a redocly.yaml config instead. github.com - Removed
external
Schemas no longer export an external object. Referenced schemas are flattened into components, and some names may have changed. github.com - Renamed
--immutable-types
The flag is now called --immutable. Update scripts that pass --immutable-types. github.com - Renamed
--support-array-length
The flag is now called --array-length. Update scripts that pass --support-array-length. github.com - Behavior changed
Most optional objects, including Components keys and HTTP methods, now always appear in types, typed as never. Code that checks for their absence must change. github.com - Behavior changed
Generated names for operation IDs containing # now use a slash instead. Code referring to those generated names must be updated. github.com - Default changed
defaultNonNullable
The defaultNonNullable option is now true by default. Set it to false to keep the previous output. github.com
And 2 more in this version. Sign up to see every change
openapi-typescript 6.0.0 breaking changes
- Removed
GlobalContext.auth
GlobalContext.auth was removed in openapi-typescript 6.0.0 npmjs.com - Removed
GlobalContext.commentHeader
GlobalContext.commentHeader was removed in openapi-typescript 6.0.0 npmjs.com - Removed
GlobalContext.contentNever
GlobalContext.contentNever was removed in openapi-typescript 6.0.0 npmjs.com - Removed
GlobalContext.formatter
GlobalContext.formatter was removed in openapi-typescript 6.0.0 npmjs.com - Removed
GlobalContext.makePathsEnum
GlobalContext.makePathsEnum was removed in openapi-typescript 6.0.0 npmjs.com - Removed
GlobalContext.namespace
GlobalContext.namespace was removed in openapi-typescript 6.0.0 npmjs.com - Removed
GlobalContext.rawSchema
GlobalContext.rawSchema was removed in openapi-typescript 6.0.0 npmjs.com - Removed
GlobalContext.version
GlobalContext.version was removed in openapi-typescript 6.0.0 npmjs.com - Removed
GlobalContext.xNullableAsNullable
GlobalContext.xNullableAsNullable was removed in openapi-typescript 6.0.0 npmjs.com - Removed
HeaderObject.type
HeaderObject.type was removed in openapi-typescript 6.0.0 npmjs.com
And 67 more in this version. Sign up to see every change
openapi-typescript 5.0.0 breaking changes
- Signature changed
default
Was function openapiTS(schema: string | OpenAPI2 | OpenAPI3 | Record<string, SchemaObject>, options?: SwaggerToTSOptions): Promise<string>; now function openapiTS(schema: string | URL | OpenAPI2 | OpenAPI3 | Record<string, SchemaObject>... 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.