From c04674fa74c2e43535181431aef5d891f8839619 Mon Sep 17 00:00:00 2001 From: Kevin Hoerr Date: Sun, 14 Aug 2022 21:35:45 +0000 Subject: Merge planner code (#3) Reviewed-on: https://git.submelon.dev/kjhoerr/pantry/pulls/3 --- orval.config.ts | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 orval.config.ts (limited to 'orval.config.ts') diff --git a/orval.config.ts b/orval.config.ts new file mode 100644 index 0000000..7151ef3 --- /dev/null +++ b/orval.config.ts @@ -0,0 +1,28 @@ +import { defineConfig } from 'orval'; + +export default defineConfig({ + pantry: { + input: './src/conf/openapi-pantry.yaml', + output: { + mode: "tags", + workspace: "./src", + target: "./util/pantry.ts", + schemas: "./model", + client: "react-query", + prettier: true, + override: { + useDates: true, + mutator: { + path: "./conf/mutator.ts", + name: "useMutator", + }, + query: { + useQuery: true, + }, + }, + }, + hooks: { + afterAllFilesWrite: 'prettier --write', + }, + }, +}); \ No newline at end of file -- cgit