From 072c38b9afa21e3118c5aa5a7f804d8fc7c653c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Vannicatte?= Date: Tue, 11 Jun 2024 14:51:05 +0200 Subject: [PATCH] fix(clients): remove unused models from lite clients (#3159) --- scripts/buildSpecs.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/buildSpecs.ts b/scripts/buildSpecs.ts index e156a0f0b8..7354fac547 100644 --- a/scripts/buildSpecs.ts +++ b/scripts/buildSpecs.ts @@ -272,6 +272,11 @@ async function buildLiteSpec({ await fsp.writeFile(bundledPath, yaml.dump(parsed)); + // remove unused components for the outputted light spec + await run( + `yarn openapi bundle ${bundledPath} -o ${bundledPath} --ext yml --remove-unused-components`, + ); + await transformBundle({ bundledPath, clientName: spec,