Releases: hey-api/openapi-ts
@hey-api/openapi-ts@0.62.1
@hey-api/openapi-ts@0.62.0
@hey-api/client-fetch@0.7.0
@hey-api/client-axios@0.5.0
@hey-api/openapi-ts@0.61.3
@hey-api/openapi-ts@0.61.2
@hey-api/openapi-ts@0.61.1
@hey-api/openapi-ts@0.61.0
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 modeWatch 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 versionfeat: add support for basic http auth
Patch Changes
@hey-api/client-fetch@0.6.0
Minor Changes
-
BREAKING: please update
@hey-api/openapi-ts
to the latest versionfeat: replace accessToken and apiKey functions with auth
Added
auth
optionClient package functions
accessToken
andapiKey
were replaced with a singleauth
function for fetching auth tokens. If your API supports multiple auth mechanisms, you can use theauth
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 typeReadableStream
) whenContent-Type
response header is not provided andparseAs
is set toauto
@hey-api/client-axios@0.4.0
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 versionfeat: replace accessToken and apiKey functions with auth
Added
auth
optionClient package functions
accessToken
andapiKey
were replaced with a singleauth
function for fetching auth tokens. If your API supports multiple auth mechanisms, you can use theauth
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.