Packages

@hey-api/openapi-ts

0.99.0 · 22 Jun 2026MIT8.3M / weekRepositoryHomepagenpmAtom feed

Your version

0.59.0

5 Dec 2024Where it was published

0.99.0 is the newest release of 0.59.x.

In short

1 removed2 new5 fixed

Security

1 advisory affects 0.59.0; 0.97.3 fixes them

Release note

Minor Changes

  • Add logs.level option

Added logs.level option

You can now configure different log levels. As part of this feature, we had to introduce a breaking change by moving the `debug` option to `logs.level`. This will affect you if you're calling `@hey-api/openapi-ts` from Node.js (not CLI) or using the configuration file.

```js
export default {
  client: '@hey-api/client-fetch',
  debug: true, // [!code --]
  input: 'path/to/openapi.json',
  logs: {
    level: 'debug', // [!code ++]
  },
  output: 'src/client',
};
```

Updated default plugins

`@hey-api/schemas` has been removed from the default plugins. To continue using it, add it to your plugins array.

```js
import { defaultPlugins } from '@hey-api/openapi-ts';

export default {
  client: '@hey-api/client-fetch',
  experimentalParser: true,
  input: 'path/to/openapi.json',
  output: 'src/client',
  plugins: [
    ...defaultPlugins,
    '@hey-api/schemas', // [!code ++]
  ],
};
```

Patch Changes

  • Correctly resolve required properties in nested allOf composition

  • Add --silent or -s CLI option for silent log level

  • Transformers handle allOf composition in experimental parser

  • Add logs configuration option to customize log directory

  • Allow arbitrary object properties when additionalProperties is undefined

  • Support DEBUG environment variable

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.