⬆️ Update @hey-api/openapi-ts dependency version and update dependabot config (#1845)
This commit is contained in:
@@ -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",
|
||||
},
|
||||
],
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user