Skip to content
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

[Hub Generated] Review request for Route to add version preview/2023-10-01-preview #24987

Merged
merged 34 commits into from
Nov 17, 2023

Conversation

koyasu221b
Copy link
Member

@koyasu221b koyasu221b commented Jul 26, 2023

This is a PR generated at OpenAPI Hub. You can view your work branch via this link.

Data Plane API - Pull Request

API Info: The Basics

Most of the information about your service should be captured in the issue that serves as your API Spec engagement record.

  • Link to API Spec engagement record issue:

Is this review for (select one):

  • a private preview
  • a public preview
  • GA release

Change Scope

This section will help us focus on the specific parts of your API that are new or have been modified.
Please share a link to the design document for the new APIs, a link to the previous API Spec document (if applicable), and the root paths that have been updated.

❔Got questions? Need additional info?? We are here to help!

Contact us!

The Azure API Review Board is dedicated to helping you create amazing APIs. You can read about our mission and learn more about our process on our wiki.

Click here for links to tools, specs, guidelines & other good stuff

Tooling

Guidelines & Specifications

Helpful Links

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Jul 26, 2023

Swagger Validation Report

️️✔️BreakingChange succeeded [Detail] [Expand]
There are no breaking changes.
️⚠️Breaking Change(Cross-Version): 31 Warnings warning [Detail]
compared swaggers (via Oad v0.10.4)] new version base version
route.json 2023-10-01-preview(93b4c99) 2023-09-01-preview(main)

The following breaking changes are detected by comparison with the latest preview version:

Only 30 items are listed, please refer to log for more details.

Rule Message
⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'LegPointIndex' removed or renamed?
New: Route/preview/2023-10-01-preview/route.json#L197:3
Old: Route/preview/2023-09-01-preview/route.json#L196:3
⚠️ 1019 - RemovedEnumValue The new version is removing enum value(s) 'highways, minimizeHighways, minimizeTollRoads' from the old version.
New: Route/preview/2023-10-01-preview/route.json#L300:11
Old: Route/preview/2023-09-01-preview/route.json#L299:11
⚠️ 1019 - RemovedEnumValue The new version is removing enum value(s) 'highways, minimizeHighways, minimizeTollRoads' from the old version.
New: Route/preview/2023-10-01-preview/route.json#L300:11
Old: Route/preview/2023-09-01-preview/route.json#L299:11
⚠️ 1019 - RemovedEnumValue The new version is removing enum value(s) 'Merge, TakeTransit, Transfer, TransitArrive, TransitDepart' from the old version.
New: Route/preview/2023-10-01-preview/route.json#L1052:9
Old: Route/preview/2023-09-01-preview/route.json#L981:9
⚠️ 1019 - RemovedEnumValue The new version is removing enum value(s) 'Merge, TakeTransit, Transfer, TransitArrive, TransitDepart' from the old version.
New: Route/preview/2023-10-01-preview/route.json#L1703:9
Old: Route/preview/2023-09-01-preview/route.json#L1563:9
⚠️ 1019 - RemovedEnumValue The new version is removing enum value(s) 'Merge, TakeTransit, Transfer, TransitArrive, TransitDepart' from the old version.
New: Route/preview/2023-10-01-preview/route.json#L1073:5
Old: Route/preview/2023-09-01-preview/route.json#L1002:5
⚠️ 1026 - TypeChanged The new version has a different type 'array' than the previous one 'string'.
New: Route/preview/2023-10-01-preview/route.json#L1788:9
Old: Route/preview/2023-09-01-preview/route.json#L1650:9
⚠️ 1027 - DefaultValueChanged The new version has a different default value than the previous one.
New: Route/preview/2023-10-01-preview/route.json#L347:9
Old: Route/preview/2023-09-01-preview/route.json#L346:9
⚠️ 1027 - DefaultValueChanged The new version has a different default value than the previous one.
New: Route/preview/2023-10-01-preview/route.json#L347:9
Old: Route/preview/2023-09-01-preview/route.json#L346:9
⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'heading' renamed or removed?
New: Route/preview/2023-10-01-preview/route.json#L1728:7
Old: Route/preview/2023-09-01-preview/route.json#L1588:7
⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'axleCount' renamed or removed?
New: Route/preview/2023-10-01-preview/route.json#L1728:7
Old: Route/preview/2023-09-01-preview/route.json#L1588:7
⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'legPointIndex' renamed or removed?
⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'pathLegRange' renamed or removed?
New: Route/preview/2023-10-01-preview/route.json#L1046:7
Old: Route/preview/2023-09-01-preview/route.json#L975:7
⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'legPointIndex' renamed or removed?
⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'legPointIndex' renamed or removed?
New: Route/preview/2023-10-01-preview/route.json#L657:7
Old: Route/preview/2023-09-01-preview/route.json#L630:7
⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'legPointIndex' renamed or removed?
⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'pathLegRange' renamed or removed?
New: Route/preview/2023-10-01-preview/route.json#L908:7
Old: Route/preview/2023-09-01-preview/route.json#L859:7
⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'pathLegRange' renamed or removed?
New: Route/preview/2023-10-01-preview/route.json#L962:7
Old: Route/preview/2023-09-01-preview/route.json#L897:7
⚠️ 1036 - ConstraintChanged The new version has a different 'maximum' value than the previous one.
New: Route/preview/2023-10-01-preview/route.json#L1734:9
Old: Route/preview/2023-09-01-preview/route.json#L1602:9
⚠️ 1036 - ConstraintChanged The new version has a different 'minimum' value than the previous one.
New: Route/preview/2023-10-01-preview/route.json#L1734:9
Old: Route/preview/2023-09-01-preview/route.json#L1602:9
⚠️ 1036 - ConstraintChanged The new version has a different 'maximum' value than the previous one.
New: Route/preview/2023-10-01-preview/route.json#L1743:9
Old: Route/preview/2023-09-01-preview/route.json#L1609:9
⚠️ 1036 - ConstraintChanged The new version has a different 'minimum' value than the previous one.
New: Route/preview/2023-10-01-preview/route.json#L1743:9
Old: Route/preview/2023-09-01-preview/route.json#L1609:9
⚠️ 1036 - ConstraintChanged The new version has a different 'maximum' value than the previous one.
New: Route/preview/2023-10-01-preview/route.json#L1752:9
Old: Route/preview/2023-09-01-preview/route.json#L1616:9
⚠️ 1036 - ConstraintChanged The new version has a different 'minimum' value than the previous one.
New: Route/preview/2023-10-01-preview/route.json#L1752:9
Old: Route/preview/2023-09-01-preview/route.json#L1616:9
⚠️ 1036 - ConstraintChanged The new version has a different 'maximum' value than the previous one.
New: Route/preview/2023-10-01-preview/route.json#L1761:9
Old: Route/preview/2023-09-01-preview/route.json#L1623:9
⚠️ 1036 - ConstraintChanged The new version has a different 'minimum' value than the previous one.
New: Route/preview/2023-10-01-preview/route.json#L1761:9
Old: Route/preview/2023-09-01-preview/route.json#L1623:9
⚠️ 1036 - ConstraintChanged The new version has a different 'maximum' value than the previous one.
New: Route/preview/2023-10-01-preview/route.json#L1770:9
Old: Route/preview/2023-09-01-preview/route.json#L1630:9
⚠️ 1036 - ConstraintChanged The new version has a different 'minimum' value than the previous one.
New: Route/preview/2023-10-01-preview/route.json#L1770:9
Old: Route/preview/2023-09-01-preview/route.json#L1630:9
⚠️ 1036 - ConstraintChanged The new version has a different 'maximum' value than the previous one.
New: Route/preview/2023-10-01-preview/route.json#L1779:9
Old: Route/preview/2023-09-01-preview/route.json#L1643:9
⚠️ 1036 - ConstraintChanged The new version has a different 'minimum' value than the previous one.
New: Route/preview/2023-10-01-preview/route.json#L1779:9
Old: Route/preview/2023-09-01-preview/route.json#L1643:9
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
️⚠️LintDiff: 4 Warnings warning [Detail]
compared tags (via openapi-validator v2.1.6) new version base version
package-preview-2023-10 package-preview-2023-10(93b4c99) default(main)

[must fix]The following errors/warnings are introduced by current PR:

Rule Message Related RPC [For API reviewers]
⚠️ PropertyType Property should have a defined type.
Location: Route/preview/2023-10-01-preview/route.json#L786
⚠️ PropertyType Property should have a defined type.
Location: Route/preview/2023-10-01-preview/route.json#L791
⚠️ PropertyType Property should have a defined type.
Location: Route/preview/2023-10-01-preview/route.json#L934
⚠️ PropertyType Property should have a defined type.
Location: Route/preview/2023-10-01-preview/route.json#L939


The following errors/warnings exist before current PR submission:

Rule Message
⚠️ ErrorResponse Error schema should define code and message properties as required.
Location: Route/preview/2023-10-01-preview/route.json#L120
⚠️ PaginationResponse Operation might be pageable. Consider adding the x-ms-pageable extension.
Location: Route/preview/2023-10-01-preview/route.json#L135
⚠️ ErrorResponse Error schema should define code and message properties as required.
Location: Route/preview/2023-10-01-preview/route.json#L182
⚠️ EnumInsteadOfBoolean Booleans properties are not descriptive in all cases and can make them to use, evaluate whether is makes sense to keep the property as boolean or turn it into an enum.
Location: Route/preview/2023-10-01-preview/route.json#L292
⚠️ EnumInsteadOfBoolean Booleans properties are not descriptive in all cases and can make them to use, evaluate whether is makes sense to keep the property as boolean or turn it into an enum.
Location: Route/preview/2023-10-01-preview/route.json#L1729
⚠️ AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
Location: Route/preview/2023-10-01-preview/route.json#L1978
️️✔️Avocado succeeded [Detail] [Expand]
Validation passes for Avocado.
️️✔️SwaggerAPIView succeeded [Detail] [Expand]
️️✔️TypeSpecAPIView succeeded [Detail] [Expand]
️️✔️ModelValidation succeeded [Detail] [Expand]
Validation passes for ModelValidation.
️️✔️SemanticValidation succeeded [Detail] [Expand]
Validation passes for SemanticValidation.
️️✔️PoliCheck succeeded [Detail] [Expand]
Validation passed for PoliCheck.
️️✔️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).
️️✔️PR Summary succeeded [Detail] [Expand]
Validation passes for Summary.
️️✔️Automated merging requirements met succeeded [Detail] [Expand]
Posted by Swagger Pipeline | How to fix these errors?

@openapi-workflow-bot
Copy link

Hi, @koyasu221b! Thank you for your pull request. To help get your PR merged:

  • Ensure you reviewed the checklists in the PR description.
  • Know that PR assignee is the person auto-assigned and responsible for your current PR review and approval.
  • For convenient view of the API changes made by this PR, refer to the URLs provided in the table in the Generated ApiView comment added to this PR. You can use ApiView to show API versions diff.
  • @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Jul 26, 2023

    PR validation pipeline restarted successfully. This comment will be populated with the 'Swagger Generation Artifacts' report

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Jul 26, 2023

    Generated ApiView

    Language Package Name ApiView Link
    Swagger maps-data-plane-Route https://apiview.dev/Assemblies/Review/5bdadaac63074173b440cedfd2deb56c

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Aug 17, 2023

    Next Steps to Merge

    ✔️ All automated merging requirements have been met! Refer to step 4 in the PR workflow diagram (even if your PR is for data plane, not ARM).

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Aug 23, 2023

    Automatic PR validation restarted. This comment will be populated with next steps to merge this PR once validation is completed. Please wait ⌛.

    @openapi-pipeline-app
    Copy link

    Swagger Generation Artifacts

    ️🔄ApiDocPreview inProgress [Detail]
    ️⌛SDK Breaking Change Tracking pending [Detail]
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    Swagger Validation Report

    ️⌛BreakingChange pending [Detail]
    ️⌛Breaking Change(Cross-Version) pending [Detail]
    ️⌛CredScan pending [Detail]
    ️⌛LintDiff pending [Detail]
    ️⌛Avocado pending [Detail]
    ️⌛SwaggerAPIView pending [Detail]
    ️⌛TypeSpecAPIView pending [Detail]
    ️⌛ModelValidation pending [Detail]
    ️⌛SemanticValidation pending [Detail]
    ️⌛PoliCheck pending [Detail]
    ️⌛PrettierCheck pending [Detail]
    ️⌛SpellCheck pending [Detail]
    ️⌛Lint(RPaaS) pending [Detail]
    ️⌛PR Summary pending [Detail]
    ️⌛Automated merging requirements met pending [Detail]
    Posted by Swagger Pipeline | How to fix these errors?

    @@ -278,7 +278,7 @@
    {
    "value": "fastestAvoidClosureWithoutTraffic",
    "name": "FastestAvoidClosureWithoutTraffic",
    "description": "The route is calculated to minimize the time and avoid road closures. No traffic information except for road closures is used in the calculation."
    "description": "The route is calculated to minimize the time and avoid road closures. No traffic information except for road closures is used in the calculation. `Note`: Only supported for driving and walking travelMode."
    Copy link
    Contributor

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    @koyasu221b Can you please check if Bing routing gives a response for walking for fastestAvoidClosureWithoutTraffic

    Copy link
    Member Author

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    No, thanks for noticing this. I'll update it in the next commit.

    "value": "highways",
    "description": "Avoids the use of highways in the route. `Note`: Only supported for driving travelMode."
    "value": "limitedAccessHighway",
    "description": "Avoids the use of limited access highway in the route. `Note`: Only supported for driving and truck travelMode."
    },
    Copy link
    Contributor

    @FarazGIS FarazGIS Sep 25, 2023

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    @koyasu221b We don't need to mention only supported for driving and truck if it's supported for both travel modes like ferries and toll road as it is implied that avoid highways would not be applicable to walking.

    Copy link
    Member Author

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    Updated.

    @@ -299,7 +299,7 @@
    "items": {
    Copy link
    Member

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    example at line 297 also need to be updated

    Copy link
    Member Author

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    fixed

    @@ -299,7 +299,7 @@
    "items": {
    "type": "string",
    "enum": [
    "highways",
    "limitedAccessHighway",
    Copy link
    Member

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    limitedAccessHighway"s" for consistency with others

    Copy link
    Member

    @winest winest left a comment

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    Line 423 also need to include ErrorDetails for DirectionsResponse

    @koyasu221b
    Copy link
    Member Author

    Line 423 also need to include ErrorDetails for DirectionsResponse

    After our discussion, we think it's not required

    @koyasu221b koyasu221b marked this pull request as ready for review November 17, 2023 07:10
    @koyasu221b koyasu221b requested a review from a team as a code owner November 17, 2023 07:10
    @koyasu221b koyasu221b requested review from markweitzel and JeffreyRichter and removed request for a team November 17, 2023 07:10
    @jhendrixMSFT jhendrixMSFT merged commit eaf8b6f into main Nov 17, 2023
    31 checks passed
    @jhendrixMSFT jhendrixMSFT deleted the koyasu221b-maps-Route-2023-10-01-preview branch November 17, 2023 18:21
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    6 participants