hey-api / openapi-ts

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

fix: allow overriding generated headers from options #1065

Closed mrlubos closed 1 month ago

mrlubos commented 1 month ago

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

stackblitz[bot] commented 1 month ago

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

vercel[bot] commented 1 month 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 Sep 19, 2024 8:11am
changeset-bot[bot] commented 1 month ago

🦋 Changeset detected

Latest commit: a756987ad396fd7e68cc5eff63f6615bffef3782

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

Codecov Report

Attention: Patch coverage is 97.43590% with 1 line in your changes missing coverage. Please review.

Project coverage is 76.66%. Comparing base (c39ee74) to head (a756987). Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
packages/openapi-ts/src/compiler/types.ts 95.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1065 +/- ## ========================================== + Coverage 76.56% 76.66% +0.10% ========================================== Files 103 103 Lines 11268 11280 +12 Branches 1135 1135 ========================================== + Hits 8627 8648 +21 + Misses 2634 2628 -6 + Partials 7 4 -3 ``` | [Flag](https://app.codecov.io/gh/hey-api/openapi-ts/pull/1065/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/1065/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=hey-api) | `76.66% <97.43%> (+0.10%)` | :arrow_up: | 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.

pkg-pr-new[bot] commented 1 month ago

Open in Stackblitz

pnpm add https://pkg.pr.new/@hey-api/client-axios@1065
pnpm add https://pkg.pr.new/@hey-api/client-fetch@1065
pnpm add https://pkg.pr.new/@hey-api/openapi-ts@1065

commit: a756987