-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Add appearance/multi-page selection feature for v3.1-preview.2 #10267
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
|
You don't have permission to trigger SDK Automation. |
[Staging] Swagger Validation Report
️✔️ |
|
Can one of the admins verify this patch? |
No, we don't support open-ended range. |
specification/cognitiveservices/data-plane/ComputerVision/preview/v3.1-preview.2/Ocr.json
Outdated
Show resolved
Hide resolved
specification/cognitiveservices/data-plane/ComputerVision/preview/v3.1-preview.2/Ocr.json
Outdated
Show resolved
Hide resolved
|
@lmazuel, just to be sure, the python SDK check may be redundant because this is a next version up preview API? Or will the check take care of that as part of the process? |
| "enum": [ | ||
| "handwriting", | ||
| "print", | ||
| null |
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 invalid openapi/swagger - null is not a string. The valid enum values should be "handwriting" and "print" - and if you don't know, you either have another sentinel value in the enum (e.g. unknown), or you simply omit the key/value pair (e.g. make the style property optional.
| "x-ms-parameter-location": "method", | ||
| "type": "array", | ||
| "items": { | ||
| "type": "integer", |
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.
Since you can specify ranges (e.g. 2-7), the data type of the parameter should be string. You may include a pattern to describe the valid values more precisely.
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.
Thanks, I have added pattern for it.
specification/cognitiveservices/data-plane/ComputerVision/preview/v3.1-preview.2/Ocr.json
Show resolved
Hide resolved
| "type": "array", | ||
| "items": { | ||
| "type": "string", | ||
| "pattern": "(^[0-9]+-[0-9]+$)|(^[0-9]+$)" |
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 would not allow you to specify open ended ranges (e.g. 8- to get all pages starting with page 8)
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.
Actually I think we're agreed with that we don't have open ended ranges in Pages in the meeting. We only have two formats: one is "2,3,4", another is "2-4".
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.
If that is what the service supports, then this is (a) correct representation. If the service does support open ranges, then we'd have to update the pattern.
|
@johanste I don't have permission to trigger SDK Automation and it's blocking the merge. I have joined the Azure group but the SDK Python is still waiting for status. Could you please help to add comment *** /openapibot sdkautomation *** to authorize it? Thanks! |
|
/azp run automation - sdk |
|
Azure Pipelines successfully started running 1 pipeline(s). |
azure-sdk-for-java - Release
|
azure-sdk-for-net - Release
No readme.md specification configuration files were found that are associated with the files modified in this pull request, or swagger_to_sdk section in readme.md is not configured
|
azure-sdk-for-go - Release
|
Azure CLI Extension Generation - Release
No readme.md specification configuration files were found that are associated with the files modified in this pull request, or swagger_to_sdk section in readme.md is not configured
|
azure-sdk-for-python - Release
|
azure-sdk-for-js - Release
|
azure-resource-manager-schemas - Release
No readme.md specification configuration files were found that are associated with the files modified in this pull request, or swagger_to_sdk section in readme.md is not configured
|
Trenton Generation - Release
No readme.md specification configuration files were found that are associated with the files modified in this pull request, or swagger_to_sdk section in readme.md is not configured
|
|
Azure Pipelines successfully started running 1 pipeline(s). |
azure-sdk-for-python-track2 - Release
No readme.md specification configuration files were found that are associated with the files modified in this pull request, or swagger_to_sdk section in readme.md is not configured
|
MSFT employees can try out our new experience at OpenAPI Hub - one location for using our validation tools and finding your workflow.
Contribution checklist:
If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist
Ensure to check this box if one of the following scenarios meet updates in the PR, so that label “WaitForARMFeedback” will be added automatically to involve ARM API Review. Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs, all “removals” and “adding a new property” no more require ARM API review.
If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
Breaking Change Review Checklist
If there are following updates in the PR, ensure to request an approval from API Review Board as defined in the Breaking Change Policy.
Please follow the link to find more details on PR review process.