[Maps][Search V2] add query to geocoding api#17207
Conversation
|
Hi, @chcmsft Thanks for your PR. I am workflow bot for review process. Here are some small tips. Any feedback about review process or workflow bot, pls contact swagger and tools team. vsswagger@microsoft.com |
Swagger Validation Report
|
| Rule | Message |
|---|---|
| Consider using x-ms-client-flatten to provide a better end user experience Location: Search/preview/2022-02-01-preview/geocoding.json#L582 |
️️✔️Avocado succeeded [Detail] [Expand]
Validation passes for Avocado.
️️✔️~[Staging] ApiReadinessCheck succeeded [Detail] [Expand]
️️✔️ModelValidation succeeded [Detail] [Expand]
Validation passes for ModelValidation.
️️✔️SemanticValidation succeeded [Detail] [Expand]
Validation passes for SemanticValidation.
️⚠️Cross-Version Breaking Changes: 4 Warnings warning [Detail]
- Compared Swaggers (Based on Oad v0.9.1)
- current:preview/2022-02-01-preview/geocoding.json compared with base:preview/2021-11-01-preview/geocoding.json
| Rule | Message |
|---|---|
| The new version is missing a client parameter that was found in the old version. Was 'CountryRegionSet' removed or renamed? New: Search/preview/2022-02-01-preview/geocoding.json#L44:3 Old: Search/preview/2021-11-01-preview/geocoding.json#L44:3 |
|
| The new version has a different default value than the previous one. New: Search/preview/2022-02-01-preview/geocoding.json#L134:9 Old: Search/preview/2021-11-01-preview/geocoding.json#L140:9 |
|
| The new version has a different default value than the previous one. New: Search/preview/2022-02-01-preview/geocoding.json#L275:9 Old: Search/preview/2021-11-01-preview/geocoding.json#L265:9 |
|
| The new version has a different default value than the previous one. New: Search/preview/2022-02-01-preview/geocoding.json#L45:5 Old: Search/preview/2021-11-01-preview/geocoding.json#L45:5 |
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
️️✔️SDK Track2 Validation succeeded [Detail] [Expand]
Validation passes for SDKTrack2Validation
- The following tags are being changed in this PR
️️✔️PrettierCheck succeeded [Detail] [Expand]
Validation passes for PrettierCheck.
️️✔️SpellCheck succeeded [Detail] [Expand]
Validation passes for SpellCheck.
️️✔️Lint(RPaaS) succeeded [Detail] [Expand]
Validation passes for Lint(RPaaS).
|
[Call for Action] To better understand Azure service dev/test scenario, and support Azure service developer better on Swagger and REST API related tests in early phase, please help to fill in with this survey https://aka.ms/SurveyForEarlyPhase. It will take 5 to 10 minutes. If you already complete survey, please neglect this comment. Thanks. |
|
Swagger pipeline restarted successfully, please wait for status update in this comment. |
|
Hi @chcmsft, Your PR has some issues. Please fix the CI sequentially by following the order of
|
da11f9e to
9da47d9
Compare
|
NewApiVersionRequired reason: |
|
Hi @chcmsft, one or multiple breaking change(s) is detected in your PR. Please check out the breaking change(s), and provide business justification in the PR comment and @ PR assignee why you must have these change(s), and how external customer impact can be mitigated. Please ensure to follow breaking change policy to request breaking change review and approval before proceeding swagger PR review. |
9da47d9 to
c496f96
Compare
c496f96 to
f3d6d2c
Compare
f3d6d2c to
efc39a3
Compare
3c55dbe to
601dacb
Compare
601dacb to
bdf5070
Compare
bdf5070 to
494faaf
Compare
6970933 to
641febd
Compare
| { | ||
| "name": "query", | ||
| "in": "query", | ||
| "description": "A string that contains information about a location, such as an address or landmark name.", | ||
| "required": false, | ||
| "type": "string" | ||
| }, |
There was a problem hiding this comment.
So this API is intended to be used in 2 modes. One is providing unstructured query. Another is providing structured addressLine, adminDistrict, postalCode, etc.?
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId" |
There was a problem hiding this comment.
While it doesn't change the REST API, we want to move the client id to one of the last entries in the array. Tools sometimes do (and autorest in particular does) use the order of parameters to construct methods when they generate code, and we want the less often used optional parameters to be last.
There was a problem hiding this comment.
good suggestion. moved.
| "$ref": "#/definitions/GeocodingBatchResponse" | ||
| } | ||
| }, | ||
| "206": { |
There was a problem hiding this comment.
206 is only applicable to range requests. If partial success is possible, we generally use status code 207 Multi-Status even though it is technically a WebDav code.
There was a problem hiding this comment.
Thanks for pointing out this mistake. But it's not in the scope this time. Would fix this in the future.
|
hi @jhendrixMSFT , it's ready for review. Please help here. Many thanks! |
* add a new query parameter, query, to geocoding api * update parameter description * refine description * move ClientId to end of parameters for autorest * add a description to note that batch geocoding doesn't support the parameter, query
* add a new query parameter, query, to geocoding api * update parameter description * refine description * move ClientId to end of parameters for autorest * add a description to note that batch geocoding doesn't support the parameter, query
MSFT employees can try out our new experience at OpenAPI Hub - one location for using our validation tools and finding your workflow.
Changelog
Add a changelog entry for this PR by answering the following questions:
Contribution checklist:
If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist
Otherwise your PR may be subject to ARM review requirements. Complete the following:
Check this box if any of the following apply to the PR so that label "WaitForARMFeedback" will be added automatically to begin ARM API Review. Failure to comply may result in delays to the manifest.
-[ ] To review changes efficiently, ensure you copy the existing version into the new directory structure for first commit and then push new changes, including version updates, in separate commits.
Ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.
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 any of the following scenarios apply to the PR, request approval from the Breaking Change Review Board as defined in the Breaking Change Policy.
Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.
Please follow the link to find more details on PR review process.