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 initopenapi-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.
A flag was added to keep casing for exported root types.
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.
Fixes handling of multi-line JSDoc comments.