-
|
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 |
Beta Was this translation helpful? Give feedback.
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. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
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…