// orval.config.ts
import { defineConfig, OutputMode } from "orval";

export default defineConfig({
	api: {
		input: "http://127.0.0.1:5000/openapi/v1.json", // Путь к вашему файлу спецификации OpenAPI
		output: {
			mode: OutputMode.TAGS,
			target: "./src/contracts/client.ts",
			prettier: true,
			client: "react-query",
			mock: false,
			override: {
				mutator: {
					path: "./src/services/http.service.ts",
					name: "customClient",
				},
			},
		},
	},
});
