|
This currently my content of the openapi-ts.config.ts: import { defineConfig } from '@hey-api/openapi-ts';
export default defineConfig({
input: './docs/event_management.swagger.json',
output: './src/shared/api',
client: 'fetch',
types: {
enums: 'typescript',
},
services: {
asClass: false,
},
});Therefore I am receiving the following error via VS Code Intellisense: I am using |
Answered by
dosubot[bot]
Apr 6, 2026
Replies: 1 comment 3 replies
|
Your config is using the old format. Starting with v0.63.0, Here's your config migrated to the v0.95.0 format: import { defineConfig } from '@hey-api/openapi-ts';
export default defineConfig({
input: './docs/event_management.swagger.json',
output: './src/shared/api',
plugins: [
'@hey-api/client-fetch',
{
name: '@hey-api/typescript',
enums: 'typescript',
},
{
name: '@hey-api/sdk',
},
],
});Key changes:
Also note that client imports changed from To reply, just mention @dosu. Docs are dead. Just use Dosu. |
3 replies
Answer selected by
paulchen5
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Your config is using the old format. Starting with v0.63.0,
@hey-api/openapi-tsmoved to a plugin-based architecture, soclient,types, andservicesare no longer top-level options [1].Here's your config migrated to the v0.95.0 format:
Key changes:
client: 'fetch'→ add'@hey-api/client-fetch'toplugins(make sure to install the@hey-api/client-fetchpackage)ty…