Skip to content

Commit 072c38b

Browse files
authored
fix(clients): remove unused models from lite clients (#3159)
1 parent c7f5de9 commit 072c38b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/buildSpecs.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,11 @@ async function buildLiteSpec({
272272

273273
await fsp.writeFile(bundledPath, yaml.dump(parsed));
274274

275+
// remove unused components for the outputted light spec
276+
await run(
277+
`yarn openapi bundle ${bundledPath} -o ${bundledPath} --ext yml --remove-unused-components`,
278+
);
279+
275280
await transformBundle({
276281
bundledPath,
277282
clientName: spec,

0 commit comments

Comments
 (0)