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

feat: add fastify plugin #1286

Closed jacobinu closed 4 days ago

jacobinu commented 1 week ago

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

This pull request

moves schemaToType to plugins utils from hey-api/types adds fastify plugin

stackblitz[bot] commented 1 week ago

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

vercel[bot] commented 1 week 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 17, 2024 2:41pm
changeset-bot[bot] commented 1 week ago

🦋 Changeset detected

Latest commit: 04f9318f720d0804db6de6593e5dd963d024aeb9

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 | Minor |

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 1 week ago

Codecov Report

Attention: Patch coverage is 61.64384% with 252 lines in your changes missing coverage. Please review.

Project coverage is 66.96%. Comparing base (6037325) to head (4182e15). Report is 14 commits behind head on main.

Files with missing lines Patch % Lines
packages/openapi-ts/src/plugins/fastify/plugin.ts 8.03% 229 Missing :warning:
...api-ts/src/plugins/@hey-api/transformers/plugin.ts 30.00% 7 Missing :warning:
...openapi-ts/src/plugins/@hey-api/services/plugin.ts 81.81% 4 Missing :warning:
...s/openapi-ts/src/openApi/3.0.x/parser/operation.ts 25.00% 3 Missing :warning:
...napi-ts/src/plugins/@tanstack/query-core/plugin.ts 25.00% 3 Missing :warning:
packages/openapi-ts/src/plugins/fastify/config.ts 84.21% 3 Missing :warning:
.../openapi-ts/src/openApi/common/parser/operation.ts 97.53% 2 Missing :warning:
packages/openapi-ts/src/ir/operation.ts 97.77% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1286 +/- ## ========================================== - Coverage 67.57% 66.96% -0.61% ========================================== Files 133 136 +3 Lines 19846 20134 +288 Branches 1784 1791 +7 ========================================== + Hits 13410 13482 +72 - Misses 6432 6648 +216 Partials 4 4 ``` | [Flag](https://app.codecov.io/gh/hey-api/openapi-ts/pull/1286/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/1286/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=hey-api) | `66.96% <61.64%> (-0.61%)` | :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.