Skip to content

Releases: hey-api/openapi-ts

@hey-api/[email protected]

13 Jan 16:39
fc7ebbd
Compare
Choose a tag to compare

Patch Changes

@hey-api/[email protected]

09 Jan 16:53
836d8a9
Compare
Choose a tag to compare

Patch Changes

@hey-api/[email protected]

08 Jan 10:45
0270ac8
Compare
Choose a tag to compare

Patch Changes

@hey-api/[email protected]

06 Jan 10:01
ec0080d
Compare
Choose a tag to compare

Minor Changes

  • #1520 b3c23ba Thanks @chriswiggins! - Add support for HTTP Bearer Authentication Scheme

  • #1525 7b7313e Thanks @mrlubos! - feat: add OpenAPI 2.0 support to experimental parser

  • #1511 4e8064d Thanks @mrlubos! - feat: add watch mode

    Watch Mode

    ::: warning
    Watch mode currently supports only remote files via URL.
    :::

    If your schema changes frequently, you may want to automatically regenerate the output during development. To watch your input file for changes, enable watch mode in your configuration or pass the --watch flag to the CLI.

    Config

    export default {
      client: '@hey-api/client-fetch',
      input: 'path/to/openapi.json',
      output: 'src/client',
      watch: true,
    };

    CLI

    npx @hey-api/openapi-ts \
      -c @hey-api/client-fetch \
      -i path/to/openapi.json \
      -o src/client \
      -w
  • BREAKING: please update @hey-api/client-* packages to the latest version

    feat: add support for basic http auth

Patch Changes

@hey-api/[email protected]

06 Jan 10:01
ec0080d
Compare
Choose a tag to compare

Minor Changes

  • BREAKING: please update @hey-api/openapi-ts to the latest version

    feat: replace accessToken and apiKey functions with auth

    Added auth option

    Client package functions accessToken and apiKey were replaced with a single auth function for fetching auth tokens. If your API supports multiple auth mechanisms, you can use the auth argument to return the appropriate token.

    import { client } from 'client/sdk.gen';
    
    client.setConfig({
      accessToken: () => '<my_token>', // [!code --]
      apiKey: () => '<my_token>', // [!code --]
      auth: (auth) => '<my_token>', // [!code ++]
    });
  • BREAKING: rename exported Security interface to Auth

  • #1507 e2e1410 Thanks @nimobeeren! - BREAKING: return raw response body (of type ReadableStream) when Content-Type response header is not provided and parseAs is set to auto

@hey-api/[email protected]

06 Jan 10:01
ec0080d
Compare
Choose a tag to compare

Minor Changes

  • BREAKING: rename exported Security interface to Auth

  • BREAKING: remove support for passing auth to Axios instance

  • BREAKING: please update @hey-api/openapi-ts to the latest version

    feat: replace accessToken and apiKey functions with auth

    Added auth option

    Client package functions accessToken and apiKey were replaced with a single auth function for fetching auth tokens. If your API supports multiple auth mechanisms, you can use the auth argument to return the appropriate token.

    import { client } from 'client/sdk.gen';
    
    client.setConfig({
      accessToken: () => '<my_token>', // [!code --]
      apiKey: () => '<my_token>', // [!code --]
      auth: (auth) => '<my_token>', // [!code ++]
    });

    Due to conflict with the Axios native auth option, we removed support for configuring Axios auth. Please let us know if you require this feature added back.

@hey-api/[email protected]

19 Dec 20:03
d459279
Compare
Choose a tag to compare

Patch Changes

@hey-api/[email protected]

19 Dec 20:03
d459279
Compare
Choose a tag to compare

Patch Changes

@hey-api/[email protected]

19 Dec 20:03
d459279
Compare
Choose a tag to compare

Patch Changes

@hey-api/[email protected]

18 Dec 01:45
fca7854
Compare
Choose a tag to compare

Patch Changes