# What changed in openapi-typescript

> 4 changes in openapi-typescript 7 from its official release notes, upgrade guides and advisories: 2 new APIs and options. Each one cited. Sources checked 2026-10-18. HTML: https://unstale.sh/npm/openapi-typescript/

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

## openapi-typescript 7

### New APIs and options

- 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.0) — [release notes](https://github.com/openapi-ts/openapi-typescript/releases/tag/openapi-typescript%407.13.0)
- A flag was added to keep casing for exported root types. (7.12.0) — [release notes](https://github.com/openapi-ts/openapi-typescript/releases/tag/openapi-typescript%407.12.0)

### Fixes and other changes

- 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.0) — [release notes](https://github.com/openapi-ts/openapi-typescript/releases/tag/openapi-typescript%407.12.0)
- Fixes handling of multi-line JSDoc comments. (7.10.1) — [release notes](https://github.com/openapi-ts/openapi-typescript/releases/tag/openapi-typescript%407.10.1)
