-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
[Azure Maps] Restore operationId for documentation #16742
Conversation
Hi, @alankashiwa 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 |
---|---|
1008 - ModifiedOperationId |
The operation id has been changed from 'GetDataForPoints' to 'Elevation_GetDataForPoints'. This will impact generated code. New: DEM/preview/1.0/elevation.json#L57:7 Old: DEM/preview/1.0/elevation.json#L57:7 |
1008 - ModifiedOperationId |
The operation id has been changed from 'PostDataForPoints' to 'Elevation_PostDataForPoints'. This will impact generated code. New: DEM/preview/1.0/elevation.json#L102:7 Old: DEM/preview/1.0/elevation.json#L102:7 |
1008 - ModifiedOperationId |
The operation id has been changed from 'GetDataForPolyline' to 'Elevation_GetDataForPolyline'. This will impact generated code. New: DEM/preview/1.0/elevation.json#L145:7 Old: DEM/preview/1.0/elevation.json#L145:7 |
1008 - ModifiedOperationId |
The operation id has been changed from 'PostDataForPolyline' to 'Elevation_PostDataForPolyline'. This will impact generated code. New: DEM/preview/1.0/elevation.json#L198:7 Old: DEM/preview/1.0/elevation.json#L198:7 |
1008 - ModifiedOperationId |
The operation id has been changed from 'GetDataForBoundingBox' to 'Elevation_GetDataForBoundingBox'. This will impact generated code. New: DEM/preview/1.0/elevation.json#L249:7 Old: DEM/preview/1.0/elevation.json#L249:7 |
1008 - ModifiedOperationId |
The operation id has been changed from 'GetLocation' to 'Geolocation_GetIPToLocation'. This will impact generated code. New: Geolocation/preview/1.0/geolocation.json#L57:7 Old: Geolocation/preview/1.0/geolocation.json#L57:7 |
1008 - ModifiedOperationId |
The operation id has been changed from 'GetMapStaticImage' to 'Render_GetMapImage'. This will impact generated code. New: Render/preview/1.0/render.json#L166:7 Old: Render/preview/1.0/render.json#L166:7 |
1008 - ModifiedOperationId |
The operation id has been changed from 'GetMapTile' to 'Render_GetMapTile'. This will impact generated code. New: Render/preview/1.0/render.json#L344:7 Old: Render/preview/1.0/render.json#L343:7 |
1008 - ModifiedOperationId |
The operation id has been changed from 'GetMapStateTile' to 'Render_GetMapStateTile'. This will impact generated code. New: Render/preview/1.0/render.json#L475:7 Old: Render/preview/1.0/render.json#L474:7 |
1008 - ModifiedOperationId |
The operation id has been changed from 'GetCopyrightCaption' to 'Render_GetCopyrightCaption'. This will impact generated code. New: Render/preview/1.0/render.json#L533:7 Old: Render/preview/1.0/render.json#L532:7 |
1008 - ModifiedOperationId |
The operation id has been changed from 'GetMapImageryTile' to 'Render_GetMapImageryTile'. This will impact generated code. New: Render/preview/1.0/render.json#L566:7 Old: Render/preview/1.0/render.json#L565:7 |
1008 - ModifiedOperationId |
The operation id has been changed from 'GetCopyrightFromBoundingBox' to 'Render_GetCopyrightFromBoundingBox'. This will impact generated code. New: Render/preview/1.0/render.json#L642:7 Old: Render/preview/1.0/render.json#L641:7 |
1008 - ModifiedOperationId |
The operation id has been changed from 'GetCopyrightForTile' to 'Render_GetCopyrightForTile'. This will impact generated code. New: Render/preview/1.0/render.json#L684:7 Old: Render/preview/1.0/render.json#L683:7 |
1008 - ModifiedOperationId |
The operation id has been changed from 'GetCopyrightForWorld' to 'Render_GetCopyrightForWorld'. This will impact generated code. New: Render/preview/1.0/render.json#L729:7 Old: Render/preview/1.0/render.json#L728:7 |
1008 - ModifiedOperationId |
The operation id has been changed from 'GetMapTileV2' to 'RenderV2_GetMapTile'. This will impact generated code. New: Render/preview/2.0/render.json#L193:7 Old: Render/preview/2.0/render.json#L193:7 |
1008 - ModifiedOperationId |
The operation id has been changed from 'GetMapTileV2' to 'RenderV2_GetMapTile'. This will impact generated code. New: Render/preview/2.1/render.json#L57:7 Old: Render/preview/2.1/render.json#L57:7 |
1008 - ModifiedOperationId |
The operation id has been changed from 'GetMapTileset' to 'RenderV2_GetMapTileset'. This will impact generated code. New: Render/preview/2.1/render.json#L129:7 Old: Render/preview/2.1/render.json#L128:7 |
1008 - ModifiedOperationId |
The operation id has been changed from 'GetMapAttribution' to 'RenderV2_GetMapAttribution'. This will impact generated code. New: Render/preview/2.1/render.json#L165:7 Old: Render/preview/2.1/render.json#L164:7 |
1008 - ModifiedOperationId |
The operation id has been changed from 'GetMapStateTile' to 'RenderV2_GetMapStateTile'. This will impact generated code. New: Render/preview/2.1/render.json#L222:7 Old: Render/preview/2.1/render.json#L221:7 |
1008 - ModifiedOperationId |
The operation id has been changed from 'GetCopyrightCaption' to 'RenderV2_GetCopyrightCaption'. This will impact generated code. New: Render/preview/2.1/render.json#L278:7 Old: Render/preview/2.1/render.json#L277:7 |
1008 - ModifiedOperationId |
The operation id has been changed from 'GetMapStaticImage' to 'RenderV2_GetMapStaticImage'. This will impact generated code. New: Render/preview/2.1/render.json#L311:7 Old: Render/preview/2.1/render.json#L310:7 |
1008 - ModifiedOperationId |
The operation id has been changed from 'GetCopyrightFromBoundingBox' to 'RenderV2_GetCopyrightFromBoundingBox'. This will impact generated code. New: Render/preview/2.1/render.json#L488:7 Old: Render/preview/2.1/render.json#L487:7 |
1008 - ModifiedOperationId |
The operation id has been changed from 'GetCopyrightForTile' to 'RenderV2_GetCopyrightForTile'. This will impact generated code. New: Render/preview/2.1/render.json#L530:7 Old: Render/preview/2.1/render.json#L529:7 |
1008 - ModifiedOperationId |
The operation id has been changed from 'GetCopyrightForWorld' to 'RenderV2_GetCopyrightForWorld'. This will impact generated code. New: Render/preview/2.1/render.json#L575:7 Old: Render/preview/2.1/render.json#L574:7 |
1008 - ModifiedOperationId |
The operation id has been changed from 'RequestRouteMatrix' to 'Route_PostRouteMatrix'. This will impact generated code. New: Route/preview/1.0/route.json#L830:7 Old: Route/preview/1.0/route.json#L830:7 |
1008 - ModifiedOperationId |
The operation id has been changed from 'GetRouteMatrix' to 'Route_GetRouteMatrix'. This will impact generated code. New: Route/preview/1.0/route.json#L935:7 Old: Route/preview/1.0/route.json#L934:7 |
1008 - ModifiedOperationId |
The operation id has been changed from 'RequestRouteMatrixSync' to 'Route_PostRouteMatrixSync'. This will impact generated code. New: Route/preview/1.0/route.json#L975:7 Old: Route/preview/1.0/route.json#L974:7 |
1008 - ModifiedOperationId |
The operation id has been changed from 'GetRouteDirections' to 'Route_GetRouteDirections'. This will impact generated code. New: Route/preview/1.0/route.json#L1078:7 Old: Route/preview/1.0/route.json#L1076:7 |
1008 - ModifiedOperationId |
The operation id has been changed from 'GetRouteDirectionsWithAdditionalParameters' to 'Route_PostRouteDirections'. This will impact generated code. New: Route/preview/1.0/route.json#L1249:7 Old: Route/preview/1.0/route.json#L1247:7 |
1008 - ModifiedOperationId |
The operation id has been changed from 'GetRouteRange' to 'Route_GetRouteRange'. This will impact generated code. New: Route/preview/1.0/route.json#L1432:7 Old: Route/preview/1.0/route.json#L1429:7 |
️⚠️
LintDiff: 14 Warnings warning [Detail]
- Linted configuring files (Based on source branch, openapi-validator v1.10.1 , classic-openapi-validator v1.1.10 )
- data-plane/DEM/readme.md tag:1.0-preview
- data-plane/Geolocation/readme.md tag:1.0-preview
- data-plane/Render/readme.md tag:2.1-preview
- data-plane/Render/readme.md tag:2.0-preview
- data-plane/Render/readme.md tag:1.0-preview
- data-plane/Route/readme.md tag:1.0-preview
- data-plane/Search/readme.md tag:1.0-preview
- data-plane/Timezone/readme.md tag:1.0-preview
- data-plane/Weather/readme.md tag:1.0-preview
- Linted configuring files (Based on target branch, openapi-validator v1.10.1 , classic-openapi-validator v1.1.10 )
- data-plane/DEM/readme.md tag:1.0-preview
- data-plane/Geolocation/readme.md tag:1.0-preview
- data-plane/Render/readme.md tag:2.1-preview
- data-plane/Render/readme.md tag:2.0-preview
- data-plane/Render/readme.md tag:1.0-preview
- data-plane/Route/readme.md tag:1.0-preview
- data-plane/Search/readme.md tag:1.0-preview
- data-plane/Timezone/readme.md tag:1.0-preview
- data-plane/Weather/readme.md tag:1.0-preview
Rule | Message |
---|---|
OperationId has a noun that conflicts with one of the model names in definitions section. The model name will be disambiguated to 'ElevationModel'. Consider using the plural form of 'Elevation' to avoid this. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change. Location: DEM/preview/1.0/elevation.json#L60 |
|
OperationId has a noun that conflicts with one of the model names in definitions section. The model name will be disambiguated to 'ElevationModel'. Consider using the plural form of 'Elevation' to avoid this. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change. Location: DEM/preview/1.0/elevation.json#L105 |
|
OperationId has a noun that conflicts with one of the model names in definitions section. The model name will be disambiguated to 'ElevationModel'. Consider using the plural form of 'Elevation' to avoid this. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change. Location: DEM/preview/1.0/elevation.json#L148 |
|
OperationId has a noun that conflicts with one of the model names in definitions section. The model name will be disambiguated to 'ElevationModel'. Consider using the plural form of 'Elevation' to avoid this. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change. Location: DEM/preview/1.0/elevation.json#L201 |
|
OperationId has a noun that conflicts with one of the model names in definitions section. The model name will be disambiguated to 'ElevationModel'. Consider using the plural form of 'Elevation' to avoid this. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change. Location: DEM/preview/1.0/elevation.json#L252 |
|
OperationId has a noun that conflicts with one of the model names in definitions section. The model name will be disambiguated to 'RouteModel'. Consider using the plural form of 'Route' to avoid this. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change. Location: Route/preview/1.0/route.json#L832 |
|
OperationId has a noun that conflicts with one of the model names in definitions section. The model name will be disambiguated to 'RouteModel'. Consider using the plural form of 'Route' to avoid this. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change. Location: Route/preview/1.0/route.json#L937 |
|
OperationId has a noun that conflicts with one of the model names in definitions section. The model name will be disambiguated to 'RouteModel'. Consider using the plural form of 'Route' to avoid this. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change. Location: Route/preview/1.0/route.json#L977 |
|
OperationId has a noun that conflicts with one of the model names in definitions section. The model name will be disambiguated to 'RouteModel'. Consider using the plural form of 'Route' to avoid this. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change. Location: Route/preview/1.0/route.json#L1080 |
|
OperationId has a noun that conflicts with one of the model names in definitions section. The model name will be disambiguated to 'RouteModel'. Consider using the plural form of 'Route' to avoid this. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change. Location: Route/preview/1.0/route.json#L1251 |
|
OperationId has a noun that conflicts with one of the model names in definitions section. The model name will be disambiguated to 'RouteModel'. Consider using the plural form of 'Route' to avoid this. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change. Location: Route/preview/1.0/route.json#L1434 |
|
OperationId has a noun that conflicts with one of the model names in definitions section. The model name will be disambiguated to 'RouteModel'. Consider using the plural form of 'Route' to avoid this. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change. Location: Route/preview/1.0/route.json#L1594 |
|
OperationId has a noun that conflicts with one of the model names in definitions section. The model name will be disambiguated to 'RouteModel'. Consider using the plural form of 'Route' to avoid this. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change. Location: Route/preview/1.0/route.json#L1642 |
|
OperationId has a noun that conflicts with one of the model names in definitions section. The model name will be disambiguated to 'RouteModel'. Consider using the plural form of 'Route' to avoid this. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change. Location: Route/preview/1.0/route.json#L1682 |
️️✔️
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 succeeded [Detail] [Expand]
There are no breaking changes.
️️✔️
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
- maps/data-plane/DEM/readme.md#1.0-preview
- maps/data-plane/Geolocation/readme.md#1.0-preview
- maps/data-plane/Render/readme.md#2.1-preview
- maps/data-plane/Render/readme.md#2.0-preview
- maps/data-plane/Render/readme.md#1.0-preview
- maps/data-plane/Route/readme.md#1.0-preview
- maps/data-plane/Search/readme.md#1.0-preview
- maps/data-plane/Timezone/readme.md#1.0-preview
- maps/data-plane/Weather/readme.md#1.0-preview
️️✔️
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 Generation Artifacts
|
Hi @alankashiwa, 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. |
@tjprescott I opened this PR for restoring the
Let me know if there are any concerns in this PR :) |
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.
Some questions, but otherwise looks fine to me.
@@ -56,7 +56,8 @@ | |||
"/geolocation/ip/{format}": { | |||
"get": { | |||
"description": "\n**Applies to**: S0 and S1 pricing tiers.\n\n\nThis service will return the ISO country code for the provided IP address. Developers can use this information to block or alter certain content based on geographical locations where the application is being viewed from.", | |||
"operationId": "GetLocation", | |||
"operationId": "Geolocation_GetIPToLocation", | |||
"x-ms-client-name": "GetLocation", |
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.
To verify, changing the operation ID like this would relocate these operations from the Client to a GeolocationOperations object. Does this x-ms-client-name preserve that?
I would expect this would generate GeolocationOperations.get_location
. Is that correct?
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.
@tjprescott Yes, this "x-ms-client-name": "GetLocation"
will still preserve the GeolocationOperations object so the method signature matches what you expect.
I've also tried passing --inspector
options to the autorest, and found that it is the code model generated by the modelerfour that preserves the operationGroup.
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 @alankashiwa
@tjprescott if there aren't any more concerns, can we please get this one merged? We'd like to start working on convenience layer next week. thanks!
@@ -165,7 +165,8 @@ | |||
"/map/static/{format}": { | |||
"get": { | |||
"description": "**Applies to**: S0 and S1 pricing tiers.\n\n\nThe static image service renders a user-defined, rectangular image containing a map section using a zoom level from 0 to 20. The static image service renders a user-defined, rectangular image containing a map section using a zoom level from 0 to 20. The supported resolution range for the map image is from 1x1 to 8192x8192. If you are deciding when to use the static image service over the map tile service, you may want to consider how you would like to interact with the rendered map. If the map contents will be relatively unchanging, a static map is a good choice. If you want to support a lot of zooming, panning and changing of the map content, the map tile service would be a better choice. \n\nService also provides Image Composition functionality to get a static image back with additional data like; pushpins and geometry overlays with following S0 and S1 capabilities. \n\nIn S0 you can:\n- Render up to 5 pushpins specified in the request\n- Provide one custom image for the pins referenced in the request\n- Add labels to the pushpins\n\nIn S1 you can:\n- Render pushpins through [Azure Maps Data Service](https://aka.ms/AzureMapsMapDataService)\n- Specify multiple pushpin styles\n- Render circle, polyline and polygon geometry types.\n- Render of supported GeoJSON geometry types uploaded through [Azure Maps Data Service](https://aka.ms/AzureMapsMapDataService)\n\nPlease see [How-to-Guide](https://aka.ms/AzureMapsHowToGuideImageCompositor) for detailed examples.\n\n_Note_ : Either **center** or **bbox** parameter must be supplied to the\nAPI.\n<br><br>\nThe supported Lat and Lon ranges when using the **bbox** parameter, are as follows:\n<br><br>\n\n |Zoom Level | Max Lon Range | Max Lat Range|\n |:----------|:----------------|:-------------|\n |0 | 360.0 | 170.0 | \n |1 | 360.0 | 170.0 |\n |2 | 360.0 | 170.0 |\n |3 | 360.0 | 170.0 |\n |4 | 360.0 | 170.0 |\n |5 | 180.0 | 85.0 |\n |6 | 90.0 | 42.5 |\n |7 | 45.0 | 21.25 |\n |8 | 22.5 | 10.625 |\n |9 | 11.25 | 5.3125 |\n |10 | 5.625 | 2.62625 |\n |11 | 2.8125 | 1.328125 |\n |12 | 1.40625 | 0.6640625 |\n |13 | 0.703125 | 0.33203125 |\n |14 | 0.3515625 | 0.166015625 |\n |15 | 0.17578125 | 0.0830078125 | \n |16 | 0.087890625 | 0.0415039063 | \n |17 | 0.0439453125 | 0.0207519531 |\n |18 | 0.0219726563 | 0.0103759766 |\n |19 | 0.0109863281 | 0.0051879883 |\n |20 | 0.0054931641 | 0.0025939941 |", | |||
"operationId": "GetMapStaticImage", | |||
"operationId": "Render_GetMapImage", | |||
"x-ms-client_name": "GetMapStaticImage", |
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.
@tjprescott "x-ms-client_name" is an invalid name, you should use "x-ms-client-name" instead.
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.
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.
@kairu-ms @tjprescott Thanks for pointing this out. I've opened a PR to fix the typo: #17290
* Fix Weather IconCode enum * Restore operationId prefixes: first pass * Align the operationIds with Swaggers under Microsoft.Map * Rename GetPolygon method * Fix countryCode required attribute
This is a PR generated at OpenAPI Hub. You can view your work branch via this link.
Changelog
Add a changelog entry for this PR by answering the following questions:
Contribution checklist:
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.