-
Notifications
You must be signed in to change notification settings - Fork 223
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
Fix Bug for OpenAPI 3 Emitter crash on @useAuth({}) #4133
Conversation
There was a problem hiding this 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.
Co-authored-by: Timothee Guerin <timothee.guerin@outlook.com>
Co-authored-by: Timothee Guerin <timothee.guerin@outlook.com>
There was a problem hiding this 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)
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>
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>
OpenAPI 3 Emitter crash on @useAuth({}).
seems the diagnostics is not initial before add item.
fix: #4097