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

fix: gracefully handle invalid schema type in experimental parser #1309

Closed mrlubos closed 3 days ago

stackblitz[bot] commented 3 days ago

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

changeset-bot[bot] commented 3 days ago

🦋 Changeset detected

Latest commit: 785480b2d5f96a681dfc1f7f0fb626f744bb221f

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 3 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 18, 2024 6:52pm
codecov[bot] commented 3 days ago

Codecov Report

Attention: Patch coverage is 34.28571% with 23 lines in your changes missing coverage. Please review.

Project coverage is 66.81%. Comparing base (a993b8e) to head (785480b). Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...ages/openapi-ts/src/openApi/3.0.x/parser/schema.ts 0.00% 12 Missing :warning:
...ages/openapi-ts/src/openApi/3.1.x/parser/schema.ts 50.00% 6 Missing :warning:
...es/openapi-ts/src/plugins/@hey-api/types/plugin.ts 54.54% 5 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1309 +/- ## ========================================== - Coverage 66.88% 66.81% -0.07% ========================================== Files 136 136 Lines 20215 20244 +29 Branches 1797 1799 +2 ========================================== + Hits 13520 13527 +7 - Misses 6691 6713 +22 Partials 4 4 ``` | [Flag](https://app.codecov.io/gh/hey-api/openapi-ts/pull/1309/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/1309/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=hey-api) | `66.81% <34.28%> (-0.07%)` | :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: