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",
          },
        },
      },
    },
  },
});