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

Fix handling of nulls, nullables, and exclusive{Min,Max} for OpenAPI 3.0 #235

Merged
merged 3 commits into from
Jan 20, 2025

Conversation

oliver-statsig
Copy link

Fixes #220 #211 #228 #212

This adds OpenAPI 3.0-specific logic so that the correct 3.0 results are generated.

Looking beyond the somewhat liberal sprinkling of 3.0-vs-3.1 conditionals, I had to add some typecasts since the base schema is incompatible in 3.0 vs 3.1 for exclusive values. I do wonder if long term, the 3.0 and 3.1 functions should be split out entirely.

Copy link

nx-cloud bot commented Dec 23, 2024

View your CI Pipeline Execution ↗ for commit dee5469.

Command Status Duration Result
nx affected:test --base=origin/main --codeCoverage ✅ Succeeded 23s View ↗
nx affected:lint --base=origin/main ✅ Succeeded 4s View ↗

☁️ Nx Cloud last updated this comment at 2024-12-23 23:46:12 UTC

@Brian-McBride Brian-McBride merged commit 8d4fa35 into anatine:main Jan 20, 2025
2 checks passed
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.

[zod-openapi] null property becomes "null" string
3 participants