aboutsummaryrefslogtreecommitdiff
path: root/orval.config.ts
diff options
context:
space:
mode:
authorKevin Hoerr <kjhoerr@noreply.cybr.es>2022-08-14 21:35:45 +0000
committerKevin Hoerr <kjhoerr@noreply.cybr.es>2022-08-14 21:35:45 +0000
commitc04674fa74c2e43535181431aef5d891f8839619 (patch)
tree2f7ce3b61590b39254bc22ac96272b7533ed96d2 /orval.config.ts
parent461b1fa053bcc86d06156574ab59fa7000dbf69e (diff)
downloadpantry-c04674fa74c2e43535181431aef5d891f8839619.tar.gz
pantry-c04674fa74c2e43535181431aef5d891f8839619.tar.bz2
pantry-c04674fa74c2e43535181431aef5d891f8839619.zip
Merge planner code (#3)
Reviewed-on: https://git.submelon.dev/kjhoerr/pantry/pulls/3
Diffstat (limited to 'orval.config.ts')
-rw-r--r--orval.config.ts28
1 files changed, 28 insertions, 0 deletions
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