Skip to content

Commit

Permalink
fix(clients): remove unused models from lite clients (#3159)
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts authored Jun 11, 2024
1 parent c7f5de9 commit 072c38b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/buildSpecs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

1 comment on commit 072c38b

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please # to comment.