mirror of
https://github.com/fastapi/full-stack-fastapi-template.git
synced 2026-09-22 13:48:42 +00:00
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
22 lines
562 B
TypeScript
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(/^[^-]*-/, ""),
|
|
},
|
|
},
|
|
],
|
|
})
|