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 Bug for OpenAPI 3 Emitter crash on @useAuth({}) #4133

Merged
merged 16 commits into from
Aug 28, 2024

Conversation

skywing918
Copy link
Member

@skywing918 skywing918 commented Aug 9, 2024

OpenAPI 3 Emitter crash on @useAuth({}).
seems the diagnostics is not initial before add item.

fix: #4097

@microsoft-github-policy-service microsoft-github-policy-service bot added the emitter:openapi3 Issues for @typespec/openapi3 emitter label Aug 9, 2024
Copy link
Contributor

@markcowl markcowl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: you will need to add a changelog entry for the PR to be merged.

Also, if possible, should add a test to ensure no emitter crash.

Copy link
Member

@chrisradek chrisradek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good to me - also tested and confirmed they fix #4272 as well (empty model vs empty model expression)

@chrisradek chrisradek added this pull request to the merge queue Aug 27, 2024
Merged via the queue into microsoft:main with commit 92684d9 Aug 28, 2024
18 checks passed
@skywing918 skywing918 deleted the CrashOnunsupported-auth branch August 28, 2024 06:52
weidongxu-microsoft pushed a commit to weidongxu-microsoft/typespec that referenced this pull request Sep 3, 2024
OpenAPI 3 Emitter crash on @useAuth({}). 
seems the diagnostics is not initial before add item. 

fix: microsoft#4097

---------

Co-authored-by: Kyle Zhang <v-zhanh@microsoft.com>
Co-authored-by: Mark Cowlishaw <markcowl@microsoft.com>
Co-authored-by: Timothee Guerin <timothee.guerin@outlook.com>
Co-authored-by: Christopher Radek <14189820+chrisradek@users.noreply.github.com>
sarangan12 pushed a commit to sarangan12/typespec that referenced this pull request Sep 16, 2024
OpenAPI 3 Emitter crash on @useAuth({}). 
seems the diagnostics is not initial before add item. 

fix: microsoft#4097

---------

Co-authored-by: Kyle Zhang <v-zhanh@microsoft.com>
Co-authored-by: Mark Cowlishaw <markcowl@microsoft.com>
Co-authored-by: Timothee Guerin <timothee.guerin@outlook.com>
Co-authored-by: Christopher Radek <14189820+chrisradek@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
emitter:openapi3 Issues for @typespec/openapi3 emitter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: OpenAPI 3 Emitter crash on @useAuth({})
5 participants