We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db8018e commit 0e2f437Copy full SHA for 0e2f437
frontend/openapi-ts.config.ts
@@ -1,16 +1,17 @@
1
import { defineConfig } from "@hey-api/openapi-ts"
2
3
export default defineConfig({
4
- client: "legacy/axios",
5
input: "./openapi.json",
6
output: "./src/client",
7
- // exportSchemas: true,
+
8
plugins: [
+ "legacy/axios",
9
{
10
name: "@hey-api/sdk",
11
// NOTE: this doesn't allow tree-shaking
12
asClass: true,
13
operationId: true,
14
+ classNameBuilder: "{{name}}Service",
15
methodNameBuilder: (operation) => {
16
// @ts-ignore
17
let name: string = operation.name
@@ -24,5 +25,9 @@ export default defineConfig({
24
25
return name.charAt(0).toLowerCase() + name.slice(1)
26
},
27
28
+ {
29
+ name: "@hey-api/schemas",
30
+ type: "json",
31
+ },
32
],
-})
33
+})
0 commit comments