123
This commit is contained in:
31
openapi-ts.config.ts
Normal file
31
openapi-ts.config.ts
Normal file
@ -0,0 +1,31 @@
|
||||
import { defineConfig } from "@hey-api/openapi-ts";
|
||||
|
||||
export default defineConfig({
|
||||
input: "http://localhost:8000/openapi.json",
|
||||
output: "./lib/client",
|
||||
|
||||
|
||||
plugins: [
|
||||
"@hey-api/client-axios",
|
||||
"@tanstack/react-query",
|
||||
"@hey-api/typescript",
|
||||
{
|
||||
name: "zod",
|
||||
requests: true,
|
||||
definitions: true,
|
||||
metadata: true,
|
||||
dates: {
|
||||
offset: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "@hey-api/sdk",
|
||||
asClass: false,
|
||||
validator: "zod",
|
||||
},
|
||||
{
|
||||
name: "@hey-api/client-next",
|
||||
runtimeConfigPath: "@/ hey-api-config",
|
||||
},
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user