Skip to content
Discussion options

You must be logged in to vote

Your config is using the old format. Starting with v0.63.0, @hey-api/openapi-ts moved to a plugin-based architecture, so client, types, and services are no longer top-level options [1].

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:

  • client: 'fetch' → add '@hey-api/client-fetch' to plugins (make sure to install the @hey-api/client-fetch package)
  • ty…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Paulchen5
Comment options

@mrlubos
Comment options

@dosubot
Comment options

Answer selected by Paulchen5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants