generated from NYCPlanning/ae-remix-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kubb.config.ts
42 lines (41 loc) · 915 Bytes
/
kubb.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import { defineConfig } from "@kubb/core";
import { pluginTs } from "@kubb/swagger-ts";
import { pluginZod } from "@kubb/swagger-zod";
import { pluginClient } from "@kubb/swagger-client";
import { pluginFaker } from "@kubb/swagger-faker";
import { pluginOas } from "@kubb/plugin-oas";
import { pluginMsw } from "@kubb/swagger-msw";
export default defineConfig({
root: ".",
input: {
path: "https://raw.githubusercontent.com/NYCPlanning/ae-zoning-api/main/openapi/openapi.yaml",
},
output: {
path: "./app/gen",
clean: true,
},
plugins: [
pluginOas({
output: false,
}),
pluginTs({}),
pluginZod({
output: {
path: "./zod",
},
}),
pluginClient({
output: {
path: "./axios",
},
}),
pluginFaker({
regexGenerator: "randexp",
}),
pluginMsw({
output: {
path: "./mocks",
},
}),
],
});