Skip to content
Compare
Choose a tag to compare
@github-actions github-actions released this 05 Dec 00:05
· 34 commits to main since this release
8dd356f

Minor Changes

  • #1387 7c4335d Thanks @mrlubos! - feat: 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.

    export default {
      client: '@hey-api/client-fetch',
      debug: true, // [!code --]
      input: 'path/to/openapi.json',
      logs: {
        level: 'debug', // [!code ++]
      },
      output: 'src/client',
    };
  • #1389 f4c98ec Thanks @mrlubos! - feat: remove @hey-api/schemas from default plugins

    Updated default plugins

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

    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