-
Notifications
You must be signed in to change notification settings - Fork 5.6k
ComputerVision: bug fixes for /describe and /analyze [breaking] #3486
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
ComputerVision: bug fixes for /describe and /analyze [breaking] #3486
Conversation
* Inconsistent argument type for `/analyze?details=...` between URL and stream methods * BingIU imagetype return values needs to be integral * Description `maxCandidates` argument needs to be integral
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: |
|
@DavidLiCIG @felixwa please, review. The PR contains potential SDK and API breaking changes, it's important that we receive approval from you. |
| ], | ||
| "parameters": [ | ||
| { | ||
| "name": "maxCandidates", |
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
|
@sergey-shandar, this looks good to me. In future please include @yangyuan as reviewer for all Cognitive Services swagger file review. Thanks! |
Updates for [PR1](Azure/azure-rest-api-specs#3479) and [PR2](Azure/azure-rest-api-specs#3486). * The API client name was changed from ComputerVisionAPI to ComputerVisionClient, in keeping with other Azure SDKs. * The way the Azure region is specfied has changed. Specifically, the AzureRegion property was dropped in favor of an Endpoint property. If you were previously specifying an AzureRegion value, you should now specify Endpoint='https://{AzureRegion}.api.cognitive.microsoft.com' instead. This change ensures better global coverage. * Some inconsistencies in argument types were corrected. (a) maxCandidate is an integer for DescribeImage. (b) details is a array of enumerated types for AnalyzeImage. (c) isBWImg in the AnalyzeImage(color) response is a non-nullable bool. (d) clipArtType/lineDrawing in AnalyzeImage(imageType) is an integer (index) instead of a double.
/analyze?details=...between URL and stream methodsmaxCandidatesargument needs to be integralThis 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-versionin the path should match theapi-versionin the spec).Quality of Swagger