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: transform any-of nullable dates #1066

Closed mrlubos closed 1 month ago

mrlubos commented 1 month ago

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

stackblitz[bot] commented 1 month ago

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

changeset-bot[bot] commented 1 month ago

🦋 Changeset detected

Latest commit: e8a38ae4e3f021a105d18764ef3252db7efa9aa0

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

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 9:47am
codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 31.13208% with 73 lines in your changes missing coverage. Please review.

Project coverage is 76.47%. Comparing base (2228914) to head (e8a38ae). Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
packages/openapi-ts/src/compiler/types.ts 8.10% 34 Missing :warning:
packages/openapi-ts/src/compiler/transform.ts 22.58% 24 Missing :warning:
packages/openapi-ts/src/generate/transformers.ts 6.66% 14 Missing :warning:
packages/openapi-ts/src/utils/type.ts 80.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1066 +/- ## ========================================== - Coverage 76.66% 76.47% -0.20% ========================================== Files 103 103 Lines 11280 11323 +43 Branches 1135 1134 -1 ========================================== + Hits 8648 8659 +11 - Misses 2628 2660 +32 Partials 4 4 ``` | [Flag](https://app.codecov.io/gh/hey-api/openapi-ts/pull/1066/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/1066/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=hey-api) | `76.47% <31.13%> (-0.20%)` | :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.

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

Open in Stackblitz

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

commit: e8a38ae