hey-api / openapi-ts

✨ Turn your OpenAPI specification into a beautiful TypeScript client
https://heyapi.vercel.app
MIT License
635 stars 44 forks source link

fix: infinite loop in transforms #712

Closed mrlubos closed 5 days ago

mrlubos commented 5 days ago

Closes https://github.com/hey-api/openapi-ts/issues/705

stackblitz[bot] commented 5 days ago

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

vercel[bot] commented 5 days ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hey-api-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 24, 2024 3:47am
changeset-bot[bot] commented 5 days ago

🦋 Changeset detected

Latest commit: 0ce82e53bbf34a0bcf9265d310889b4dbc81397b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ------------------- | ----- | | @hey-api/openapi-ts | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

codecov[bot] commented 5 days ago

Codecov Report

Attention: Patch coverage is 25.25253% with 518 lines in your changes missing coverage. Please review.

Project coverage is 69.67%. Comparing base (0e79f7b) to head (0ce82e5). Report is 2 commits behind head on main.

Files Patch % Lines
...ackages/openapi-ts/src/utils/write/transformers.ts 11.89% 289 Missing :warning:
packages/openapi-ts/src/compiler/transform.ts 8.23% 78 Missing :warning:
packages/openapi-ts/src/utils/write/services.ts 8.69% 63 Missing :warning:
packages/openapi-ts/src/utils/write/types.ts 59.67% 25 Missing :warning:
packages/openapi-ts/src/utils/write/type.ts 46.15% 21 Missing :warning:
packages/openapi-ts/src/compiler/function.ts 15.78% 16 Missing :warning:
packages/openapi-ts/src/utils/write/client.ts 47.82% 11 Missing and 1 partial :warning:
packages/openapi-ts/src/compiler/convert.ts 30.00% 7 Missing :warning:
packages/openapi-ts/src/compiler/return.ts 28.57% 5 Missing :warning:
packages/openapi-ts/src/compiler/index.ts 90.47% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #712 +/- ## ========================================== - Coverage 71.06% 69.67% -1.39% ========================================== Files 76 78 +2 Lines 8034 8267 +233 Branches 710 709 -1 ========================================== + Hits 5709 5760 +51 - Misses 2321 2502 +181 - Partials 4 5 +1 ``` | [Flag](https://app.codecov.io/gh/hey-api/openapi-ts/pull/712/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=hey-api) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/hey-api/openapi-ts/pull/712/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=hey-api) | `69.67% <25.25%> (-1.39%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=hey-api#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.