initial commit
This commit is contained in:
commit
88c14b627e
224 files changed
+17204
No files matched your search
@@ -0,0 +1,37 @@
|
||||
import { defineConfig } from "orval";
|
||||
|
||||
export default defineConfig({
|
||||
lincodex: {
|
||||
input: {
|
||||
target: "../../api/core/openapi.bundle.yml",
|
||||
},
|
||||
output: {
|
||||
mode: "tags-split",
|
||||
target: "../src/shared/api/endpoints",
|
||||
indexFiles: true,
|
||||
schemas: {
|
||||
path: "../src/shared/api/schemas",
|
||||
type: "zod",
|
||||
splitByTags: true,
|
||||
},
|
||||
client: "react-query",
|
||||
httpClient: "fetch",
|
||||
mock: {
|
||||
indexMockFiles: true,
|
||||
generators: [{ type: "msw" }],
|
||||
},
|
||||
override: {
|
||||
mutator: {
|
||||
path: "../src/shared/api/client.ts",
|
||||
name: "apiRequest",
|
||||
},
|
||||
fetch: {
|
||||
includeHttpResponseReturnType: false,
|
||||
},
|
||||
query: {
|
||||
signal: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in new issue
Block a user