Skip to content

Commit

Permalink
fix: generate service types when types are enabled, even if services …
Browse files Browse the repository at this point in the history
…are disabled
  • Loading branch information
mrlubos committed Jul 1, 2024
1 parent 099fb26 commit aacf6dd
Show file tree
Hide file tree
Showing 6 changed files with 2,339 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/great-planets-kick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hey-api/openapi-ts': patch
---

fix: generate service types when types are enabled, even if services are disabled
4 changes: 1 addition & 3 deletions packages/openapi-ts/src/utils/write/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,5 @@ export const processTypes = async ({
processModel({ client, model, onNode });
}

if (files.services && client.services.length) {
processServiceTypes({ client, onNode });
}
processServiceTypes({ client, onNode });
};
Loading

0 comments on commit aacf6dd

Please sign in to comment.