From a9b7277fae7abc8fcab3c581ef691140ed4488e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Katharina=20W=C3=BCnsche?= Date: Mon, 1 Jul 2024 12:38:33 +0200 Subject: [PATCH] fix: update options for zod client generation (#9) --- scripts/generate-api-client.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/generate-api-client.ts b/scripts/generate-api-client.ts index 8389192..cb80ef3 100644 --- a/scripts/generate-api-client.ts +++ b/scripts/generate-api-client.ts @@ -48,6 +48,10 @@ openApiDoc = { await generateZodClientFromOpenAPI({ openApiDoc, distPath: options.dist, + options: { + shouldExportAllTypes: true, + withAlias: true, + }, }); console.log("Client creation completed");