gitdataai/orval.config.ts
2026-05-30 01:38:27 +08:00

24 lines
498 B
TypeScript

import { defineConfig } from "orval";
export default defineConfig({
gitdata: {
input: "openapi.json",
output: {
target: "src/client/endpoints.ts",
schemas: "src/client/models",
client: "axios",
mock: false,
clean: true,
override: {
operations: {
gitCreateRepo: {
transformer: "createRepo",
},
gitListBranches: {
transformer: "listBranches",
},
},
},
},
},
});