Skip to content

Releases: hey-api/openapi-ts

@hey-api/[email protected]

25 Nov 09:15
47026d4
Compare
Choose a tag to compare

Patch Changes

@hey-api/[email protected]

22 Nov 11:20
0ccd494
Compare
Choose a tag to compare

Minor Changes

  • #1324 4e62378 Thanks @mrlubos! - feat: rename Hey API plugins

    Renamed @hey-api/services plugin

    This plugin has been renamed to @hey-api/sdk.

    Changed sdk.output value

    To align with the updated name, the @hey-api/sdk plugin will generate an sdk.gen.ts file. This will result in a breaking change if you're importing from services.gen.ts. Please update your imports to reflect this change.

    import { client } from 'client/services.gen'; // [!code --]
    import { client } from 'client/sdk.gen'; // [!code ++]

    Renamed @hey-api/types plugin

    This plugin has been renamed to @hey-api/typescript.

  • #1327 62e37d5 Thanks @mrlubos! - feat: add typescript.exportInlineEnums option

    Added typescript.exportInlineEnums option

    By default, inline enums (enums not defined as reusable components in the input file) will be generated only as inlined union types. You can set exportInlineEnums to true to treat inline enums as reusable components. When true, the exported enums will follow the style defined in enums.

    This is a breaking change since in the previous versions, inline enums were always treated as reusable components. To preserve your current output, set exportInlineEnums to true. This feature works only with the experimental parser.

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

Patch Changes

@hey-api/[email protected]

21 Nov 12:28
00417a7
Compare
Choose a tag to compare

Patch Changes

@hey-api/[email protected]

20 Nov 19:13
a134d19
Compare
Choose a tag to compare

Patch Changes

@hey-api/[email protected]

18 Nov 19:15
ecd9087
Compare
Choose a tag to compare

Patch Changes

  • #1309 785480b Thanks @mrlubos! - fix: gracefully handle invalid schema type in experimental parser

@hey-api/[email protected]

18 Nov 11:59
a993b8e
Compare
Choose a tag to compare

Minor Changes

Patch Changes

@hey-api/[email protected]

18 Nov 11:59
a993b8e
Compare
Choose a tag to compare

Patch Changes

@hey-api/[email protected]

13 Nov 22:05
6037325
Compare
Choose a tag to compare

Patch Changes

@hey-api/[email protected]

10 Nov 23:10
c410193
Compare
Choose a tag to compare

Patch Changes

@hey-api/[email protected]

10 Nov 23:10
c410193
Compare
Choose a tag to compare

Patch Changes