hey-api / openapi-ts

✨ Turn your OpenAPI specification into a beautiful TypeScript client
https://heyapi.vercel.app
Other
1.08k stars 89 forks source link

fix: use generated types in request object instead of inlined duplicated paramschore: export enums in fetch example #582

Closed mrlubos closed 4 months ago

stackblitz[bot] commented 4 months ago

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

vercel[bot] commented 4 months 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 May 16, 2024 5:15am
changeset-bot[bot] commented 4 months ago

🦋 Changeset detected

Latest commit: 86eb51543cc39793d8b38e247b86fc15aef37acb

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 4 months ago

Codecov Report

Attention: Patch coverage is 36.55914% with 236 lines in your changes are missing coverage. Please review.

Project coverage is 75.81%. Comparing base (ad1aa5b) to head (86eb515).

Files Patch % Lines
packages/openapi-ts/src/utils/write/types.ts 17.24% 120 Missing :warning:
packages/openapi-ts/src/utils/write/services.ts 7.14% 104 Missing :warning:
packages/openapi-ts/src/utils/write/type.ts 63.63% 8 Missing :warning:
packages/openapi-ts/src/compiler/utils.ts 88.00% 3 Missing :warning:
packages/openapi-ts/src/utils/write/index.ts 50.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #582 +/- ## ========================================== - Coverage 77.03% 75.81% -1.23% ========================================== Files 74 74 Lines 6981 7185 +204 Branches 653 655 +2 ========================================== + Hits 5378 5447 +69 - Misses 1600 1735 +135 Partials 3 3 ``` | [Flag](https://app.codecov.io/gh/hey-api/openapi-ts/pull/582/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/582/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=hey-api) | `75.81% <36.55%> (-1.23%)` | :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.