-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Add Visual Search API swagger #2872
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
Conversation
Automation for azure-sdk-for-goNothing to generate for azure-sdk-for-go |
Automation for azure-sdk-for-pythonNothing to generate for azure-sdk-for-python |
Automation for azure-libraries-for-javaNothing to generate for azure-libraries-for-java |
Automation for azure-sdk-for-nodeNothing to generate for azure-sdk-for-node |
| "image": "multipart-form-data", | ||
| "knowledgeRequest": { | ||
| "imageInfo": { | ||
| imageInsightsToken: "{Image Insights Token}", |
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.
That's not a valid JSON.
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.
updated
|
@swhite-msft The full swagger spec for the Image Visual Search API! |
|
@shakao I don't think you want to merge this to master. I think you want it in the release-build-cognitive-search release branch. |
|
@swhite-msft : We have checked in all Specs to master only. What branch is this " release-build-cognitive-search" ? |
|
All well ?? |
| "in": "formData", | ||
| "description": "A JSON object containing information about the image. The image and imageInsightsToken fields are mutually exclusive – the body of the request must include only one of them.", | ||
| "required": false, | ||
| "type": "string" |
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.
It looks like the type has to be KnowledgeRequest instead of string.
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.
We don't have the ability to specify objects in the body of a POST request using multipart form-data with Swagger 2.0, so it's encoded as a string for now. I've updated the example to match.
| "accentColor":"956236" | ||
| }, | ||
| { | ||
| "webSearchUrl":"https:\/\/www.bing.com\/images\/search?view=detailv2&FORM=OIIRPO |
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.
image._type is missing.
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.
updated
| "accentColor":"956236" | ||
| }, | ||
| { | ||
| "webSearchUrl":"https:\/\/www.bing.com\/images\/search?view=detailv2&FORM=OIIRPO |
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.
tags[*]._type is expected, according to the swagger.
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.
updated
|
Hi There, I am the AutoRest Linter Azure bot. I am here to help. My task is to analyze the situation from the AutoRest linter perspective. Please review the below analysis result: File: AutoRest Linter Guidelines | AutoRest Linter Issues | Send feedback Thanks for your co-operation. |
|
@sergey-shandar : We are waiting for your sign off. Please let us know if the spec is ready to be merged. We will update Release branch Folks to pick final signed off version of spec and merge in Release branch instead of master. |
|
@sudhansu88 The examples are still broken https://travis-ci.org/Azure/azure-rest-api-specs/jobs/367436243#L770 |
|
@sergey-shandar the first failure is because it's expecting a type "file", and the example placeholder is a string, which i based off the existing Custom Vision API example. i don't think there's a way to include a file upload in the example json? |
|
Hi There, I am the AutoRest Linter Azure bot. I am here to help. My task is to analyze the situation from the AutoRest linter perspective. Please review the below analysis result: File: AutoRest Linter Guidelines | AutoRest Linter Issues | Send feedback Thanks for your co-operation. |
|
@shakao yes, it's a known bug. Please ignore the first one and have a look the response. |
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-versionin the path should match theapi-versionin the spec).Quality of Swagger