hey-api / openapi-ts

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

fix: add support for OpenAPI 3.1.1 to experimental parser #1209

Closed mrlubos closed 3 weeks ago

stackblitz[bot] commented 3 weeks ago

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

changeset-bot[bot] commented 3 weeks ago

🦋 Changeset detected

Latest commit: 3a80b9fd009c8229d69f3f349acbfb19b7549a94

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 weeks 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 Oct 29, 2024 0:03am
codecov[bot] commented 3 weeks ago

Codecov Report

Attention: Patch coverage is 77.27273% with 10 lines in your changes missing coverage. Please review.

Project coverage is 73.11%. Comparing base (8322b39) to head (3a80b9f). Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
.../openapi-ts/src/plugins/@hey-api/schemas/plugin.ts 66.66% 7 Missing :warning:
...kages/openapi-ts/src/openApi/3.0.x/parser/index.ts 57.14% 3 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1209 +/- ## ========================================== + Coverage 73.09% 73.11% +0.01% ========================================== Files 125 125 Lines 17617 17634 +17 Branches 1715 1726 +11 ========================================== + Hits 12878 12893 +15 - Misses 4736 4738 +2 Partials 3 3 ``` | [Flag](https://app.codecov.io/gh/hey-api/openapi-ts/pull/1209/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/1209/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=hey-api) | `73.11% <77.27%> (+0.01%)` | :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 3 weeks ago

Open in Stackblitz

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

commit: 3a80b9f