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

[zod-nestjs] Recursively convert to OpenAPI 3.0 specification #185

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

erkstruwe
Copy link
Contributor

Hi and sorry I did not fix this right away in #182.

In my project I have a somewhat advanced structure of Zod validation schemes with nested objects and arrays. So far, we only convert OpenAPI 3.1 back to OpenAPI 3.0 for objects and only on the root level, e. g. the properties object. However, schema objects can incorporate other schema objects in a bunch of other places, for example anyOf or items for arrays,

This PR addresses this problem by recursively converting zod-openapi's OpenAPI 3.1 object back to OpenAPI 3.0 for NestJS.

Copy link

nx-cloud bot commented Jan 24, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 1d88027. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 2 targets

Sent with 💌 from NxCloud.

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

Successfully merging this pull request may close these issues.

2 participants