-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Enable Computer Vision Client to customize endpoint. #3440
Conversation
Automation for azure-sdk-for-pythonThe initial PR has been merged into your service PR: |
Automation for azure-sdk-for-nodeThe initial PR has been merged into your service PR: |
Automation for azure-sdk-for-javaThe initial PR has been merged into your service PR: |
Automation for azure-sdk-for-rubyThe initial PR has been merged into your service PR: |
Automation for azure-sdk-for-goThe initial PR has been merged into your service PR: |
@@ -8,7 +8,6 @@ nodejs: | |||
package-name: azure-cognitiveservices-computervision | |||
package-version: 2.0.0-preview | |||
output-folder: $(node-sdks-folder)/lib/services/computerVision | |||
override-client-name: ComputerVisionAPIClient |
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.
Remove "override-client-name" since the Client name now naturally ends with "Client"
"parameters": [ | ||
{ | ||
"$ref": "#/parameters/AzureRegion" | ||
"$ref": "#/parameters/Endpoint" |
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.
Endpoint has to be "$ref", otherwise, it behaves like "x-ms-parameter-location": "method".
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.
I believe you'll have to update all the examples, (like this).
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.
@cthrash Thanks, didn't know about the examples, they are now updated.
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.
lgtm
@DavidLiCIG @felixwa please, review. |
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.
@yangyuan what's the reason for breaking changes in the stable API?
@sergey-shandar, no changes on operations/models. Just host template update so the client can be flexible to customize the base URI. |
"description": "Supported Azure regions for Cognitive Services endpoints", | ||
"Endpoint": { | ||
"name": "Endpoint", | ||
"description": "Supported Cognitive Services endpoints", |
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.
This is fine for now but would be great if there is a URL in here pointing users to a doc where he/she would be able to get the endpoint.
@sergey-shandar ping... :) |
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.
This's still potential SDK breaking changes. If you are ok with this, I will merge it.
@sergey-shandar, we are aware that this is a breaking change. :) Please merge. |
)" This reverts commit 6a7eb1d.
* Enable Computer Vision Client to customize endpoint. * Update Corresponding examples.
This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information
api-version
in the path should match theapi-version
in the spec).Quality of Swagger