feat: add hey-api configuration and update OpenAPI TypeScript plugin settings

This commit is contained in:
2025-08-05 17:48:33 +03:00
parent 7bb8ab97c7
commit 74f7cc7664
3 changed files with 24 additions and 37 deletions

View File

@ -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",
},
],
});