29 lines
678 B
TypeScript
29 lines
678 B
TypeScript
import { defineConfig } from "@hey-api/openapi-ts";
|
|
|
|
export default defineConfig({
|
|
input: "http://localhost:8000/openapi.json",
|
|
output: "src/client",
|
|
|
|
plugins: [
|
|
"@hey-api/client-axios",
|
|
"@tanstack/react-query",
|
|
"@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",
|
|
},
|
|
],
|
|
});
|