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 missing handling of overload in isUnexpected #2097

Merged
merged 8 commits into from
Nov 8, 2023

Conversation

joheredi
Copy link
Member

@joheredi joheredi commented Nov 4, 2023

Is unexpected was missing the return ypes for overloads. Adding them.
Cast cast in Modular to the specific RLC overload

fixes #2013

Copy link
Member

@MaryGao MaryGao left a comment

Choose a reason for hiding this comment

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

LGTM and thanke for the fix!

response: PublishCloudEvent200Response | PublishCloudEventDefaultResponse
response:
| PublishCloudEvent200Response
| PublishCloudEvents200Response
Copy link
Member

Choose a reason for hiding this comment

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

It seems that we have sharedRoute cases in smoke testing and there is no error reported during npm run build. But the build error is reported in OpenAI.

Do you know what caused the difference? I guess maybe the tsconfig.json is inconsistant.

Copy link
Member Author

Choose a reason for hiding this comment

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

Which build error in OpenAI? The one in the issue? I think that was relying on a branch that hasn't made it to main, that's why our smoke-tests are not failing

Copy link
Member

@MaryGao MaryGao Nov 8, 2023

Choose a reason for hiding this comment

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

Maybe I remembered wrongly and checking here #2013 (comment)

@@ -105,6 +105,7 @@ import {
LibraryGetDefaultResponse,
LibraryCreate200Response,
LibraryCreate202Response,
LibraryAppend201Response,
Copy link
Member

Choose a reason for hiding this comment

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

Why do we have these changes? I don't think we have sharedRoute cases in swagger?

op getAvatarAsPng is Azure.Core.RpcOperation<PngImage, {@header accept: "image/png"}>;

@route("/avatar")
@sharedRoute
Copy link
Member

Choose a reason for hiding this comment

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

@joheredi joheredi merged commit 8fdc016 into Azure:main Nov 8, 2023
28 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.

[JS] Missing isUnexpected Overload
2 participants