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

Add data-plane 2023-06-30 for Azure Digital Twins #23616

Merged
merged 2 commits into from
May 18, 2023

Conversation

abhinav-ghai
Copy link
Member

@abhinav-ghai abhinav-ghai commented Apr 18, 2023

Data Plane API - Pull Request

Add new API version 2023-06-30 for data plane APIs of Azure Digital Twins

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](https://aka.ms/azsdk/onboarding/restapischedule).

  • Link to API Spec engagement record issue:
    We are taking changes from public preview to GA, the only changes are in /jobs/imports path, which is going GA, other API is same as pevious.

https://github.com/Azure/azure-rest-api-specs-pr/pull/10145

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.

Previous Open API Doc: 2023-02-27-preview
Bulk Import API Review doc. https://microsoft.sharepoint.com/:w:/t/DanHellem/EUaFSi42pHJNlQNlLaEXkNQBPE6xvqmfpdEs7Rr5DxbknA?e=Ov1Jcj

  • Updated paths: /jobs/imports

❔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

fix #23657

@abhinav-ghai abhinav-ghai requested a review from a team as a code owner April 18, 2023 22:00
@abhinav-ghai abhinav-ghai requested review from markweitzel and vicancy and removed request for a team April 18, 2023 22:00
@openapi-workflow-bot
Copy link

Hi, @abhinav-ghai Thanks for your PR. I am workflow bot for review process. Here are some small tips.

  • Please ensure to do self-check against checklists in first PR comment.
  • PR assignee is the person auto-assigned and responsible for your current PR reviewing and merging.
  • For specs comparison cross API versions, Use API Specs Comparison Report Generator
  • If there is CI failure(s), to fix CI error(s) is mandatory for PR merging; or you need to provide justification in PR comment for explanation. How to fix?

  • Any feedback about review process or workflow bot, pls contact swagger and tools team. [email protected]

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Apr 18, 2023

    Swagger Validation Report

    ️️✔️BreakingChange succeeded [Detail] [Expand]
    There are no breaking changes.
    ️⚠️Breaking Change(Cross-Version): 5 Warnings warning [Detail]
    compared swaggers (via Oad v0.10.4)] new version base version
    digitaltwins.json 2023-06-30(5c3b94b) 2022-05-31(main)
    digitaltwins.json 2023-06-30(5c3b94b) 2023-02-27-preview(main)

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

    Rule Message
    ⚠️ 1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
    New: Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json#L387:13
    Old: Microsoft.DigitalTwins/stable/2022-05-31/digitaltwins.json#L351:13
    ⚠️ 1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
    New: Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json#L448:13
    Old: Microsoft.DigitalTwins/stable/2022-05-31/digitaltwins.json#L406:13
    ⚠️ 1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
    New: Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json#L611:13
    Old: Microsoft.DigitalTwins/stable/2022-05-31/digitaltwins.json#L551:13
    ⚠️ 1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
    New: Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json#L675:13
    Old: Microsoft.DigitalTwins/stable/2022-05-31/digitaltwins.json#L609:13
    ⚠️ 1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
    New: Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json#L1103:13
    Old: Microsoft.DigitalTwins/stable/2022-05-31/digitaltwins.json#L995:13
    ️️✔️CredScan succeeded [Detail] [Expand]
    There is no credential detected.
    ️⚠️LintDiff: 0 Warnings warning [Detail]
    compared tags (via openapi-validator v2.1.1) new version base version
    package-2023-06-30 package-2023-06-30(5c3b94b) default(main)

    The following errors/warnings exist before current PR submission:

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

    Rule Message
    OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Query' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json#L298
    MissingTypeObject The schema 'ErrorResponse' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json#L1936
    MissingTypeObject The schema 'Error' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json#L1948
    MissingTypeObject The schema 'InnerError' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json#L1975
    XmsParameterLocation The parameter 'api-version' is defined in global parameters section without 'x-ms-parameter-location' extension. This would add the parameter as the client property. Please ensure that this is exactly you want. If so, apply the extension 'x-ms-parameter-location': 'client'. Else, apply the extension 'x-ms-parameter-location': 'method'.
    Location: Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json#L2054
    IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
    Location: Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json#L2062
    XmsEnumValidation The enum types should have x-ms-enum type extension set with appropriate options.
    Location: Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json#L2074
    ⚠️ Post201Response Using post for a create operation is discouraged.
    Location: Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json#L59
    ⚠️ ErrorResponse Error schema should define code and message properties as required.
    Location: Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json#L73
    ⚠️ ErrorResponse Error schema should define code and message properties as required.
    Location: Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json#L133
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json#L164
    ⚠️ ErrorResponse Error schema should define code and message properties as required.
    Location: Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json#L189
    ⚠️ PatchContentType A patch operation should consume 'application/merge-patch+json' content type.
    Location: Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json#L201
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json#L210
    ⚠️ ErrorResponse Error schema should define code and message properties as required.
    Location: Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json#L241
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json#L259
    ⚠️ ErrorResponse Error schema should define code and message properties as required.
    Location: Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json#L278
    ⚠️ ListInOperationName Since operation response has model definition in array type, it should be of the form '_list'.
    Location: Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json#L294
    ⚠️ PaginationResponse Operation might be pageable. Consider adding the x-ms-pageable extension.
    Location: Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json#L294
    ⚠️ ErrorResponse Error schema should define code and message properties as required.
    Location: Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json#L349
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json#L377
    ⚠️ ErrorResponse Error schema should define code and message properties as required.
    Location: Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json#L405
    ⚠️ PutRequestResponseScheme A PUT operation request body schema should be the same as its 200 response schema, to allow reusing the same entity between GET and PUT. If the schema of the PUT request body is a superset of the GET response body, make sure you have a PATCH operation to make the resource updatable. Operation: 'DigitalTwins_Add' Request Model: 'parameters[1].schema' Response Model: 'responses[200].schema'
    Location: Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json#L411
    ⚠️ OperationId OperationId for put method should contain 'Create' or 'Update'
    Location: Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json#L415
    ⚠️ PutInOperationName 'PUT' operation 'DigitalTwins_Add' should use method name 'Create'. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json#L415
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json#L426
    ⚠️ ErrorResponse Error schema should define code and message properties as required.
    Location: Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json#L466
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json#L484
    ⚠️ ErrorResponse Error schema should define code and message properties as required.
    Location: Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json#L506
    ⚠️ PatchContentType A patch operation should consume 'application/merge-patch+json' content type.
    Location: Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json#L518
    ️️✔️Avocado succeeded [Detail] [Expand]
    Validation passes for Avocado.
    ️️✔️ApiReadinessCheck succeeded [Detail] [Expand]
    ️⚠️~[Staging] ServiceAPIReadinessTest: 0 Warnings warning [Detail]

    API Test is not triggered due to precheck failure. Check pipeline log for details.

    ️️✔️SwaggerAPIView succeeded [Detail] [Expand]
    ️️✔️CadlAPIView 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).
    ️️✔️CadlValidation succeeded [Detail] [Expand]
    Validation passes for CadlValidation.
    ️️✔️TypeSpec Validation succeeded [Detail] [Expand]
    Validation passes for TypeSpec Validation.
    ️️✔️PR Summary succeeded [Detail] [Expand]
    Validation passes for Summary.
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Apr 18, 2023

    Swagger Generation Artifacts

    ️️✔️ApiDocPreview succeeded [Detail] [Expand]
     Please click here to preview with your @microsoft account. 
    ️️✔️SDK Breaking Change Tracking succeeded [Detail] [Expand]

    Breaking Changes Tracking

    ️️✔️ azure-sdk-for-net-track2 succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from 2c0f2c7. SDK Automation 14.0.0
      command	pwsh ./eng/scripts/Automation-Sdk-Init.ps1 ../azure-sdk-for-net_tmp/initInput.json ../azure-sdk-for-net_tmp/initOutput.json
      command	pwsh ./eng/scripts/Invoke-GenerateAndBuildV2.ps1 ../azure-sdk-for-net_tmp/generateInput.json ../azure-sdk-for-net_tmp/generateOutput.json
    • ️✔️Azure.DigitalTwins.Core [View full logs]  [Release SDK Changes]
      info	[Changelog]
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Apr 18, 2023

    Generated ApiView

    Language Package Name ApiView Link
    .Net Azure.DigitalTwins.Core There is no API change compared with the previous version

    @openapi-workflow-bot
    Copy link

    Hi, @abhinav-ghai, For review efficiency consideration, when creating a new api version, it is required to place API specs of the base version in the first commit, and push new version updates into successive commits. You can use OpenAPIHub to initialize the PR for adding a new version. For more details refer to the wiki. Or you could onboard API spec pipeline

    @mikekistler
    Copy link
    Member

    /azp run

    @azure-pipelines
    Copy link

    Azure Pipelines successfully started running 1 pipeline(s).

    Copy link
    Member

    @markweitzel markweitzel left a comment

    Choose a reason for hiding this comment

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

    Based on API review on Jun 4, 2023, we are good for GA

    Copy link
    Member

    @mikekistler mikekistler left a comment

    Choose a reason for hiding this comment

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

    Looks good. 👍

    @mikekistler mikekistler added the APIStewardshipBoard-SignedOff The Azure API Stewardship team has reviewed and approved the changes. label May 17, 2023
    @jhendrixMSFT jhendrixMSFT merged commit 2c0f2c7 into Azure:main May 18, 2023
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    APIStewardshipBoard-SignedOff The Azure API Stewardship team has reviewed and approved the changes. CI-MissingBaseCommit data-plane Digital Twins new-api-version
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    [Azure Digital Twins - Azure Digital Twins] API Review
    5 participants