Files
full-stack-fastapi-template/frontend/openapi-ts.config.ts
T
Yurii Motovanddependabot[bot] a8f1ba0e70 ⬆️ Bump @hey-api/openapi-ts from 0.73.0 to 0.97.3 and migrate to new client (#2388)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-07 18:25:28 +02:00

22 lines
562 B
TypeScript

import { defineConfig } from "@hey-api/openapi-ts"
export default defineConfig({
input: "./openapi.json",
output: "./src/client",
plugins: [
{ name: "@hey-api/client-axios", throwOnError: true },
{ name: "@hey-api/typescript", case: "preserve" },
{
name: "@hey-api/sdk",
operations: {
// NOTE: this doesn't allow tree-shaking
strategy: "byTags",
methods: "static",
containerName: "{{name}}Service",
methodName: (name: string): string => name.replace(/^[^-]*-/, ""),
},
},
],
})