Skip to content

fix(openapi): handle nullable $ref in a valid way for OpenAPI 3.0 using allOf#344

Merged
BenLorantfy merged 1 commit into
BenLorantfy:mainfrom
timonrieger:fix/openapi-3.0-nullable-ref-anyOf
Mar 11, 2026
Merged

fix(openapi): handle nullable $ref in a valid way for OpenAPI 3.0 using allOf#344
BenLorantfy merged 1 commit into
BenLorantfy:mainfrom
timonrieger:fix/openapi-3.0-nullable-ref-anyOf

Conversation

@timonrieger
Copy link
Copy Markdown
Contributor

@timonrieger timonrieger commented Feb 28, 2026

fixes #349

implemented as explained in the issue

Comment thread packages/nestjs-zod/src/utils.ts Outdated
Comment thread packages/nestjs-zod/src/utils.test.ts Outdated
@timonrieger timonrieger force-pushed the fix/openapi-3.0-nullable-ref-anyOf branch from 662f383 to a0b220d Compare March 10, 2026 17:08
@timonrieger
Copy link
Copy Markdown
Contributor Author

fixed all comments, allOf works on my generators

@timonrieger timonrieger requested a review from BenLorantfy March 11, 2026 14:43
@BenLorantfy BenLorantfy changed the title fix(openapi): keep anyOf for nullable $ref in OpenAPI 3.0 fix(openapi): valid nullable $ref in OpenAPI 3.0 using allOf Mar 11, 2026
@BenLorantfy BenLorantfy changed the title fix(openapi): valid nullable $ref in OpenAPI 3.0 using allOf fix(openapi): handle nullable $ref in a valid way for OpenAPI 3.0 using allOf Mar 11, 2026
@BenLorantfy BenLorantfy changed the title fix(openapi): handle nullable $ref in a valid way for OpenAPI 3.0 using allOf fix(openapi): handle nullable $ref in a valid way for OpenAPI 3.0 using allOf Mar 11, 2026
@BenLorantfy BenLorantfy merged commit 450c0ba into BenLorantfy:main Mar 11, 2026
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.

convertToOpenApi3Point0 produces invalid OpenAPI 3.0 for nullable $ref schemas

2 participants