⬆️ Update @hey-api/openapi-ts dependency version and update dependabot config (#1845)

This commit is contained in:
Alejandra
2025-09-07 23:49:07 +02:00
committed by GitHub
parent 948e7c92c6
commit e4bfdfa856
5 changed files with 365 additions and 64 deletions

View File

@@ -1,16 +1,17 @@
import { defineConfig } from "@hey-api/openapi-ts"
export default defineConfig({
client: "legacy/axios",
input: "./openapi.json",
output: "./src/client",
// exportSchemas: true,
plugins: [
"legacy/axios",
{
name: "@hey-api/sdk",
// NOTE: this doesn't allow tree-shaking
asClass: true,
operationId: true,
classNameBuilder: "{{name}}Service",
methodNameBuilder: (operation) => {
// @ts-ignore
let name: string = operation.name
@@ -24,5 +25,9 @@ export default defineConfig({
return name.charAt(0).toLowerCase() + name.slice(1)
},
},
{
name: "@hey-api/schemas",
type: "json",
},
],
})
})