Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: zod-to-openapi v3 support #11

Merged
merged 1 commit into from
Nov 21, 2024
Merged

feat: zod-to-openapi v3 support #11

merged 1 commit into from
Nov 21, 2024

Conversation

vacas5
Copy link
Contributor

@vacas5 vacas5 commented Nov 21, 2024

Upgrades the @asteasolutions/zod-to-openapi dependency to v3. Requires manually passing in the version to the generator, and its no longer a part of their default config object. Creating an additional parameter to set this which will be a breaking change. Also, needed to read the refId from deeper in the openapi object in their special Zod type.

BREAKING CHANGE: openApiVersion will need to be passed as a separate argument.

@vacas5 vacas5 requested a review from bengotow November 21, 2024 18:15
@vacas5 vacas5 marked this pull request as draft November 21, 2024 21:49
Upgrades the @asteasolutions/zod-to-openapi dependency to v3. Requires
manually passing in the version to the generator, and its no longer a
part of their default config object. Creating an additional parameter to
set this which will be a breaking change. Also, needed to read the refId
from deeper in the openapi object in their special Zod type.

BREAKING CHANGE: openApiVersion will need to be passed as a separate
argument.
@vacas5 vacas5 force-pushed the randerson/upgrade-3 branch from dd6d3e6 to 1a69465 Compare November 21, 2024 22:11
@vacas5 vacas5 marked this pull request as ready for review November 21, 2024 22:22
@vacas5 vacas5 merged commit a0f3a13 into main Nov 21, 2024
1 check passed
@vacas5 vacas5 deleted the randerson/upgrade-3 branch November 21, 2024 22:24
Copy link

🎉 This PR is included in version 3.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants