Releases: hey-api/openapi-ts
@hey-api/[email protected]
@hey-api/[email protected]
Minor Changes
-
#1324
4e62378
Thanks @mrlubos! - feat: rename Hey API pluginsRenamed
@hey-api/services
pluginThis plugin has been renamed to
@hey-api/sdk
.Changed
sdk.output
valueTo align with the updated name, the
@hey-api/sdk
plugin will generate ansdk.gen.ts
file. This will result in a breaking change if you're importing fromservices.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
pluginThis plugin has been renamed to
@hey-api/typescript
. -
#1327
62e37d5
Thanks @mrlubos! - feat: add typescript.exportInlineEnums optionAdded
typescript.exportInlineEnums
optionBy 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
totrue
to treat inline enums as reusable components. Whentrue
, the exported enums will follow the style defined inenums
.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
totrue
. 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]
@hey-api/[email protected]
@hey-api/[email protected]
@hey-api/[email protected]
Minor Changes
Patch Changes
@hey-api/[email protected]
@hey-api/[email protected]
@hey-api/[email protected]
Patch Changes
-
#1253
01dee3d
Thanks @mrlubos! - fix: update sponsorship links -
#1266
d60d260
Thanks @mrlubos! - fix: correctly generate array when items are a oneOf array with length 1 -
#1265
691cdc2
Thanks @mrlubos! - fix: handle non-exploded array query parameters -
#1267
ff3aa4a
Thanks @mrlubos! - fix: handle discriminators in experimental parser