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

Emit {nulable: true} when trying to emit null in openapi3 #2967

Merged
merged 6 commits into from
Mar 22, 2024

Conversation

timotheeguerin
Copy link
Member

@timotheeguerin timotheeguerin commented Feb 28, 2024

fix #2217

This isn't fully accurate as it is saying in openapi3 that it can be anything and null but this solve a crash, we could consider adding a warning

@timotheeguerin timotheeguerin changed the title Emit {nulable: true when trying to emit null in openapi3 Emit {nulable: true} when trying to emit null in openapi3 Feb 28, 2024
@azure-sdk
Copy link
Collaborator

azure-sdk commented Feb 28, 2024

All changed packages have been documented.

@azure-sdk
Copy link
Collaborator

You can try these changes at https://cadlplayground.z22.web.core.windows.net/prs/2967/

Check the website changes at https://tspwebsitepr.z22.web.core.windows.net/prs/2967/

@timotheeguerin timotheeguerin enabled auto-merge (squash) March 22, 2024 16:34
@timotheeguerin timotheeguerin merged commit 4e6f137 into microsoft:main Mar 22, 2024
14 checks passed
@timotheeguerin timotheeguerin deleted the fix/no-crash-nullable branch March 22, 2024 16:53
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.

OpenAPI3 can't handle null
3 participants