feat: add hey-api configuration and update OpenAPI TypeScript plugin settings
This commit is contained in:
@ -3,10 +3,26 @@ import { defineConfig } from "@hey-api/openapi-ts";
|
||||
export default defineConfig({
|
||||
input: "http://localhost:8000/openapi.json",
|
||||
output: "src/client",
|
||||
|
||||
plugins: [
|
||||
"@hey-api/client-axios",
|
||||
"@hey-api/client-next",
|
||||
"@tanstack/react-query",
|
||||
"zod"
|
||||
"@hey-api/typescript",
|
||||
{
|
||||
name: "zod",
|
||||
requests: true,
|
||||
responses: true,
|
||||
definitions: true,
|
||||
metadata: true,
|
||||
},
|
||||
{
|
||||
name: "@hey-api/sdk",
|
||||
asClass: false,
|
||||
validator: "zod",
|
||||
},
|
||||
{
|
||||
name: "@hey-api/client-next",
|
||||
runtimeConfigPath: "./src/hey-api-config.ts",
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user