hey-api / openapi-ts

🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more. Support: @mrlubos
https://heyapi.dev
Other
1.39k stars 107 forks source link

refactor: plugins subscribe to context events #1312

Closed mrlubos closed 2 days ago

stackblitz[bot] commented 2 days ago

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

changeset-bot[bot] commented 2 days ago

⚠️ No Changeset found

Latest commit: dbcadf3f680be0f4c6bbeb510a60ffb81089e4af

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

vercel[bot] commented 2 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 Nov 19, 2024 1:19pm
codecov[bot] commented 2 days ago

Codecov Report

Attention: Patch coverage is 18.09382% with 1100 lines in your changes missing coverage. Please review.

Project coverage is 65.64%. Comparing base (ecd9087) to head (dbcadf3). Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
packages/openapi-ts/src/plugins/zod/plugin.ts 7.38% 527 Missing :warning:
...napi-ts/src/plugins/@tanstack/query-core/plugin.ts 0.27% 364 Missing :warning:
...openapi-ts/src/plugins/@hey-api/services/plugin.ts 34.75% 107 Missing :warning:
...api-ts/src/plugins/@hey-api/transformers/plugin.ts 1.38% 71 Missing :warning:
packages/openapi-ts/src/plugins/fastify/plugin.ts 6.25% 15 Missing :warning:
...ckages/openapi-ts/src/plugins/zod/plugin-legacy.ts 15.38% 11 Missing :warning:
packages/openapi-ts/src/ir/context.ts 93.97% 5 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1312 +/- ## ========================================== - Coverage 66.81% 65.64% -1.18% ========================================== Files 136 138 +2 Lines 20244 20762 +518 Branches 1799 1806 +7 ========================================== + Hits 13527 13629 +102 - Misses 6713 7129 +416 Partials 4 4 ``` | [Flag](https://app.codecov.io/gh/hey-api/openapi-ts/pull/1312/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/1312/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=hey-api) | `65.64% <18.09%> (-1.18%)` | :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.


🚨 Try these New Features: