# What changed in @scalar/openapi-upgrader

> 3 changes in @scalar/openapi-upgrader 0.4 from its official release notes, upgrade guides and advisories. Each one cited. Sources checked 2026-10-19. HTML: https://unstale.sh/npm/@scalar/openapi-upgrader/

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

## @scalar/openapi-upgrader 0.4

### Fixes and other changes

- The 3.0 to 3.1 upgrade now upgrades schemas in the default entry of a Responses Object instead of mistaking it for the default keyword. (0.4.5) — [release notes](https://github.com/scalar/scalar/blob/3197dc0fb16c64777e257723b83b97b15676a875/packages/openapi-upgrader/CHANGELOG.md#045)
- The upgrader converts a oneOf or anyOf arm containing only nullable: true and optional annotations into { type: 'null' }, preserving nested extension payloads. (0.4.5) — [release notes](https://github.com/scalar/scalar/blob/3197dc0fb16c64777e257723b83b97b15676a875/packages/openapi-upgrader/CHANGELOG.md#045)
- Named examples whose names contain a slash are kept; only registered media types are treated as media-type keys, preventing request body examples from being dropped. (0.4.3) — [release notes](https://github.com/scalar/scalar/blob/3197dc0fb16c64777e257723b83b97b15676a875/packages/openapi-upgrader/CHANGELOG.md#043)
