forked from SkyCryptWebsite/SkyCrypt-Frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathorval.config.ts
More file actions
29 lines (28 loc) · 726 Bytes
/
orval.config.ts
File metadata and controls
29 lines (28 loc) · 726 Bytes
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
import { defineConfig } from "orval";
export default defineConfig({
skycrypt: {
input: "http://localhost:8080/api/openapi/doc.json",
output: {
target: "./src/lib/shared/api/orval-generated.ts",
client: "fetch",
tsconfig: "./tsconfig.json",
override: {
mutator: {
path: "./src/lib/shared/api/mutator/custom-instance.ts",
name: "customFetch"
}
},
prettier: true
}
},
skycryptZod: {
input: "http://localhost:8080/api/openapi/doc.json",
output: {
target: "./src/lib/shared/api/orval-generated-zod.ts",
client: "zod",
tsconfig: "./tsconfig.json",
fileExtension: ".zod.ts",
prettier: true
}
}
});