---
title: "openapi-typescript 7.0.0 Breaking Changes on npm | Since.dev"
description: "What each openapi-typescript release removed, renamed or changed: 129 breaking changes in 4 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/openapi-typescript
last_updated: 2026-12-04
---

# 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

Latest version `7.13.0`, released February 11, 2026. 

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [6.0.0](#v-6-0-0) to [7.0.0](#v-7-0-0): 51 breaking changes in 2 versions.
- From [5.0.0](#v-5-0-0) to [7.0.0](#v-7-0-0): 128 breaking changes in 3 versions.

## openapi-typescript 7.0.0 breaking changes

openapi-typescript 7.0.0, released June 20, 2024: 39 breaking changes.

- **Removed**  

Specify multiple schemas and their outputs in a redocly.yaml config instead of using glob patterns. [github.com](https://github.com/openapi-ts/openapi-typescript/releases/tag/openapi-typescript%407.0.0)
- **Removed** `--auth`  

Auth options must now be set in a redocly.yaml config under the http setting. [github.com](https://github.com/openapi-ts/openapi-typescript/releases/tag/openapi-typescript%407.0.0)
- **Removed** `--httpHeaders`  

Set HTTP headers in a redocly.yaml config under the http setting instead. [github.com](https://github.com/openapi-ts/openapi-typescript/releases/tag/openapi-typescript%407.0.0)
- **Removed** `--httpMethod`  

Configure this through a redocly.yaml config instead. [github.com](https://github.com/openapi-ts/openapi-typescript/releases/tag/openapi-typescript%407.0.0)
- **Removed** `external`  

Remote schemas are now flattened into the components object, and some referenced schema names may have changed. [github.com](https://github.com/openapi-ts/openapi-typescript/releases/tag/openapi-typescript%407.0.0)
- **Removed** `Fetch`  

Fetch was removed in openapi-typescript 7.0.0 [npmjs.com](https://www.npmjs.com/package/openapi-typescript/v/7.0.0)
- **Removed** `GlobalContext.cwd`  

GlobalContext.cwd was removed in openapi-typescript 7.0.0 [npmjs.com](https://www.npmjs.com/package/openapi-typescript/v/7.0.0)
- **Removed** `GlobalContext.immutableTypes`  

GlobalContext.immutableTypes was removed in openapi-typescript 7.0.0 [npmjs.com](https://www.npmjs.com/package/openapi-typescript/v/7.0.0)
- **Removed** `GlobalContext.indentLv`  

GlobalContext.indentLv was removed in openapi-typescript 7.0.0 [npmjs.com](https://www.npmjs.com/package/openapi-typescript/v/7.0.0)
- **Removed** `GlobalContext.operations`  

GlobalContext.operations was removed in openapi-typescript 7.0.0 [npmjs.com](https://www.npmjs.com/package/openapi-typescript/v/7.0.0)
- **Removed** `GlobalContext.parameters`  

GlobalContext.parameters was removed in openapi-typescript 7.0.0 [npmjs.com](https://www.npmjs.com/package/openapi-typescript/v/7.0.0)
- **Removed** `GlobalContext.supportArrayLength`  

GlobalContext.supportArrayLength was removed in openapi-typescript 7.0.0 [npmjs.com](https://www.npmjs.com/package/openapi-typescript/v/7.0.0)
- **Removed** `OpenAPITSOptions.auth`  

OpenAPITSOptions.auth was removed in openapi-typescript 7.0.0 [npmjs.com](https://www.npmjs.com/package/openapi-typescript/v/7.0.0)
- **Removed** `OpenAPITSOptions.commentHeader`  

OpenAPITSOptions.commentHeader was removed in openapi-typescript 7.0.0 [npmjs.com](https://www.npmjs.com/package/openapi-typescript/v/7.0.0)
- **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](https://www.npmjs.com/package/openapi-typescript/v/7.0.0)
- **Removed** `OpenAPITSOptions.httpHeaders`  

OpenAPITSOptions.httpHeaders was removed in openapi-typescript 7.0.0 [npmjs.com](https://www.npmjs.com/package/openapi-typescript/v/7.0.0)
- **Removed** `OpenAPITSOptions.httpMethod`  

OpenAPITSOptions.httpMethod was removed in openapi-typescript 7.0.0 [npmjs.com](https://www.npmjs.com/package/openapi-typescript/v/7.0.0)
- **Removed** `OpenAPITSOptions.immutableTypes`  

OpenAPITSOptions.immutableTypes was removed in openapi-typescript 7.0.0 [npmjs.com](https://www.npmjs.com/package/openapi-typescript/v/7.0.0)
- **Removed** `OpenAPITSOptions.inject`  

OpenAPITSOptions.inject was removed in openapi-typescript 7.0.0 [npmjs.com](https://www.npmjs.com/package/openapi-typescript/v/7.0.0)
- **Removed** `OpenAPITSOptions.supportArrayLength`  

OpenAPITSOptions.supportArrayLength was removed in openapi-typescript 7.0.0 [npmjs.com](https://www.npmjs.com/package/openapi-typescript/v/7.0.0)
- **Removed** `Subschema`  

Subschema was removed in openapi-typescript 7.0.0 [npmjs.com](https://www.npmjs.com/package/openapi-typescript/v/7.0.0)
- **Renamed** `--immutable-types`  

Use --immutable in place of --immutable-types. [github.com](https://github.com/openapi-ts/openapi-typescript/releases/tag/openapi-typescript%407.0.0)
- **Renamed** `--support-array-length`  

Use --array-length in place of --support-array-length. [github.com](https://github.com/openapi-ts/openapi-typescript/releases/tag/openapi-typescript%407.0.0)
- **Behavior changed**  

Generated operation ID names change where the original ID contained # characters, so references to them must be updated. [github.com](https://github.com/openapi-ts/openapi-typescript/releases/tag/openapi-typescript%407.0.0)
- **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](https://github.com/openapi-ts/openapi-typescript/releases/tag/openapi-typescript%407.0.0)
- **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](https://github.com/openapi-ts/openapi-typescript/releases/tag/openapi-typescript%407.0.0)
- **Default changed** `defaultNonNullable`  

Set defaultNonNullable to false explicitly to keep the previous behavior. [github.com](https://github.com/openapi-ts/openapi-typescript/releases/tag/openapi-typescript%407.0.0)
- **Configuration changed**  

TypeScript must be installed alongside openapi-typescript. [github.com](https://github.com/openapi-ts/openapi-typescript/releases/tag/openapi-typescript%407.0.0)
- **Signature changed** `ArraySubtype.type`  

Was type: "array"; now type: "array" | \["array", "null"\]. [npmjs.com](https://www.npmjs.com/package/openapi-typescript/v/7.0.0)
- **Signature changed** `BooleanSubtype.type`  

Was type: "boolean"; now type: "boolean" | \["boolean", "null"\]. [npmjs.com](https://www.npmjs.com/package/openapi-typescript/v/7.0.0)
- **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](https://www.npmjs.com/package/openapi-typescript/v/7.0.0)
- **Signature changed** `GlobalContext.discriminators`  

Was discriminators: {\[$ref: string\]: DiscriminatorObject;}; now discriminators: {objects: Record\<string, DiscriminatorObject>; refsHandled: string\[\];}. [npmjs.com](https://www.npmjs.com/package/openapi-typescript/v/7.0.0)
- **Signature changed** `IntegerSubtype.type`  

Was type: "integer"; now type: "integer" | \["integer", "null"\]. [npmjs.com](https://www.npmjs.com/package/openapi-typescript/v/7.0.0)
- **Signature changed** `NumberSubtype.type`  

Was type: "number"; now type: "number" | \["number", "null"\]. [npmjs.com](https://www.npmjs.com/package/openapi-typescript/v/7.0.0)
- **Signature changed** `OpenAPITSOptions.postTransform`  

Was postTransform?: (type: string, options: TransformSchemaObjectOptions) => string | undefined; now postTransform?: (type: ts.TypeNode, options: TransformNodeOptions) => ts.TypeNode | undefined. [npmjs.com](https://www.npmjs.com/package/openapi-typescript/v/7.0.0)
- **Signature changed** `OpenAPITSOptions.transform`  

Was transform?: (schemaObject: SchemaObject, options: TransformSchemaObjectOptions) => string | undefined; now transform?: (schemaObject: SchemaObject, options: TransformNodeOptions) => ts.TypeNode | TransformObject | undefined. [npmjs.com](https://www.npmjs.com/package/openapi-typescript/v/7.0.0)
- **Signature changed** `OperationObject.parameters`  

Was parameters?: ParameterObject | (ParameterObject | ReferenceObject)\[\]; now parameters?: (ParameterObject | ReferenceObject)\[\]. [npmjs.com](https://www.npmjs.com/package/openapi-typescript/v/7.0.0)
- **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](https://www.npmjs.com/package/openapi-typescript/v/7.0.0)
- **Signature changed** `StringSubtype.type`  

Was type: "string"; now type: "string" | \["string", "null"\]. [npmjs.com](https://www.npmjs.com/package/openapi-typescript/v/7.0.0)

## openapi-typescript 7.0.0-rc.0 breaking changes

openapi-typescript 7.0.0-rc.0, released June 20, 2024: 12 breaking changes.

- **Removed**  

Passing glob patterns as schemas is no longer supported. List multiple schemas with outputs in a redocly.yaml config. [github.com](https://github.com/openapi-ts/openapi-typescript/releases/tag/openapi-typescript%407.0.0-rc.0)
- **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](https://github.com/openapi-ts/openapi-typescript/releases/tag/openapi-typescript%407.0.0-rc.0)
- **Removed** `--httpHeaders`  

The httpHeaders option is gone from the CLI and Node.js API. Set headers in a redocly.yaml config instead. [github.com](https://github.com/openapi-ts/openapi-typescript/releases/tag/openapi-typescript%407.0.0-rc.0)
- **Removed** `--httpMethod`  

The httpMethod option is gone from the CLI and Node.js API. Configure requests in a redocly.yaml config instead. [github.com](https://github.com/openapi-ts/openapi-typescript/releases/tag/openapi-typescript%407.0.0-rc.0)
- **Removed** `external`  

Schemas no longer export an external object. Referenced schemas are flattened into components, and some names may have changed. [github.com](https://github.com/openapi-ts/openapi-typescript/releases/tag/openapi-typescript%407.0.0-rc.0)
- **Renamed** `--immutable-types`  

The flag is now called --immutable. Update scripts that pass --immutable-types. [github.com](https://github.com/openapi-ts/openapi-typescript/releases/tag/openapi-typescript%407.0.0-rc.0)
- **Renamed** `--support-array-length`  

The flag is now called --array-length. Update scripts that pass --support-array-length. [github.com](https://github.com/openapi-ts/openapi-typescript/releases/tag/openapi-typescript%407.0.0-rc.0)
- **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](https://github.com/openapi-ts/openapi-typescript/releases/tag/openapi-typescript%407.0.0-rc.0)
- **Behavior changed**  

Generated names for operation IDs containing # now use a slash instead. Code referring to those generated names must be updated. [github.com](https://github.com/openapi-ts/openapi-typescript/releases/tag/openapi-typescript%407.0.0-rc.0)
- **Default changed** `defaultNonNullable`  

The defaultNonNullable option is now true by default. Set it to false to keep the previous output. [github.com](https://github.com/openapi-ts/openapi-typescript/releases/tag/openapi-typescript%407.0.0-rc.0)

And 2 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## openapi-typescript 6.0.0 breaking changes

openapi-typescript 6.0.0, released November 9, 2022: 77 breaking changes.

- **Removed** `GlobalContext.auth`  

GlobalContext.auth was removed in openapi-typescript 6.0.0 [npmjs.com](https://www.npmjs.com/package/openapi-typescript/v/6.0.0)
- **Removed** `GlobalContext.commentHeader`  

GlobalContext.commentHeader was removed in openapi-typescript 6.0.0 [npmjs.com](https://www.npmjs.com/package/openapi-typescript/v/6.0.0)
- **Removed** `GlobalContext.contentNever`  

GlobalContext.contentNever was removed in openapi-typescript 6.0.0 [npmjs.com](https://www.npmjs.com/package/openapi-typescript/v/6.0.0)
- **Removed** `GlobalContext.formatter`  

GlobalContext.formatter was removed in openapi-typescript 6.0.0 [npmjs.com](https://www.npmjs.com/package/openapi-typescript/v/6.0.0)
- **Removed** `GlobalContext.makePathsEnum`  

GlobalContext.makePathsEnum was removed in openapi-typescript 6.0.0 [npmjs.com](https://www.npmjs.com/package/openapi-typescript/v/6.0.0)
- **Removed** `GlobalContext.namespace`  

GlobalContext.namespace was removed in openapi-typescript 6.0.0 [npmjs.com](https://www.npmjs.com/package/openapi-typescript/v/6.0.0)
- **Removed** `GlobalContext.rawSchema`  

GlobalContext.rawSchema was removed in openapi-typescript 6.0.0 [npmjs.com](https://www.npmjs.com/package/openapi-typescript/v/6.0.0)
- **Removed** `GlobalContext.version`  

GlobalContext.version was removed in openapi-typescript 6.0.0 [npmjs.com](https://www.npmjs.com/package/openapi-typescript/v/6.0.0)
- **Removed** `GlobalContext.xNullableAsNullable`  

GlobalContext.xNullableAsNullable was removed in openapi-typescript 6.0.0 [npmjs.com](https://www.npmjs.com/package/openapi-typescript/v/6.0.0)
- **Removed** `HeaderObject.type`  

HeaderObject.type was removed in openapi-typescript 6.0.0 [npmjs.com](https://www.npmjs.com/package/openapi-typescript/v/6.0.0)

And 67 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## openapi-typescript 5.0.0 breaking changes

openapi-typescript 5.0.0, released December 27, 2021: 1 breaking change.

- **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](https://www.npmjs.com/package/openapi-typescript/v/5.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
