unstale

npm / openapi-typescript

openapi-typescript

What changed in openapi-typescript 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.

2 new APIs and options2 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

openapi-typescript 74 changes

New APIs and options 2

  • Enables readOnly properties to be wrapped with $Read<T> and writeOnly properties with $Write<T>; openapi-fetch uses Readable<T> and Writable<T> helpers to exclude them from responses and request bodies.

    7.13.0release notes

  • A flag was added to keep casing for exported root types.

    7.12.0release notes

Fixes and other changes 2

  • Fixes output for schemas using oneOf/anyOf unions by narrowing union types with Extract<> before accessing variant-specific properties, preventing invalid type paths.

    7.12.0release notes

  • Fixes handling of multi-line JSDoc comments.

    7.10.1release notes