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

Union template declaration were being finished in projector #3052

Merged
merged 4 commits into from
Mar 28, 2024

Conversation

timotheeguerin
Copy link
Member

@timotheeguerin timotheeguerin commented Mar 26, 2024

fix #2946

Problem was that in the projector were were calling to this helper to see if that was a type that we should finish but it was missing the union case causing union template declaration from being finished in the projector and then being shown as finished type in the semantic navigator and crashing openapi3 emitter.

@timotheeguerin timotheeguerin changed the title Fix crash when defining template union Union template declaration were being finished in projector Mar 26, 2024
@azure-sdk
Copy link
Collaborator

azure-sdk commented Mar 26, 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/3052/

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

@timotheeguerin timotheeguerin enabled auto-merge (squash) March 28, 2024 19:22
@timotheeguerin timotheeguerin merged commit 85fa7ae into microsoft:main Mar 28, 2024
14 checks passed
@timotheeguerin timotheeguerin deleted the fix/union-template branch March 28, 2024 20:08
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.

[OpenAPI 3] Emitter crashes with templated union
3 participants