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

Swagger correctness and completeness for RecoveryServices #12932

Merged
merged 12 commits into from
Feb 16, 2021
Merged

Swagger correctness and completeness for RecoveryServices #12932

merged 12 commits into from
Feb 16, 2021

Conversation

amchandn
Copy link
Contributor

@amchandn amchandn commented Feb 10, 2021

MSFT employees can try out our new experience at OpenAPI Hub - one location for using our validation tools and finding your workflow.

Changelog

Please ensure to add changelog with this PR by answering the following questions.

  1. What's the purpose of the update?
    • new service onboarding
    • new API version
    • update existing version for new feature
    • update existing version to fix swagger quality issue in s360
    • Other, please clarify
  2. When you are targeting to deploy new service/feature to public regions? Please provide date, or month to public if date is not available yet.
    Answer: already deployed
  3. When you expect to publish swagger? Please provide date, or month to public if date is not available yet.
    Answer: 12 February
  4. If it's an update to existing version, please select SDKs of specific language and CLIs that require refresh after swagger is published.
    • SDK of .NET (need service team to ensure code readiness)
    • SDK of Python
    • SDK of Java
    • SDK of Js
    • SDK of Go
    • PowerShell
    • CLI
    • Terraform
    • No, no need to refresh for updates in this PR

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.

    • Adding new API(s)
    • Adding a new API version
    • Adding a new service
  • Please 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 there are following updates in the PR, ensure to request an approval from Breaking Change Review Board as defined in the Breaking Change Policy.

  • Removing API(s) in stable version
  • Removing properties in stable version
  • Removing API version(s) in stable version
  • Updating API in stable or public preview version with Breaking Change Validation errors
  • Updating API(s) in public preview over 1 year (refer to Retirement of Previews)

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.

@openapi-workflow-bot
Copy link

Hi, @amchandn 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. vsswagger@microsoft.com

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Feb 10, 2021

    Swagger Validation Report

    ️️✔️BreakingChange succeeded [Detail] [Expand]
    There are no breaking changes.
    ️⚠️LintDiff: 9 Warnings warning [Detail]

    Rule Message
    ⚠️ R3010 - TrackedResourceListByImmediateParent The child tracked resource, 'operationStatus' with immediate parent 'Vault', must have a list by immediate parent operation.
    Location: Microsoft.RecoveryServices/stable/2020-10-01/vaultusages.json#L65
    ⚠️ R3010 - TrackedResourceListByImmediateParent The child tracked resource, 'operationResults' with immediate parent 'Vault', must have a list by immediate parent operation.
    Location: Microsoft.RecoveryServices/stable/2020-10-01/vaultusages.json#L65
    ⚠️ R3018 - EnumInsteadOfBoolean Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: useSystemAssignedIdentity
    Location: Microsoft.RecoveryServices/stable/2020-10-01/vaults.json#L1564
    ⚠️ R4000 - ParameterDescriptionRequired 'operationId' parameter lacks 'description' property. Consider adding a 'description' element. Accurate description is essential for maintaining reference documentation.
    Location: Microsoft.RecoveryServices/stable/2020-10-01/vaults.json#L725
    ⚠️ R4000 - ParameterDescriptionRequired 'operationId' parameter lacks 'description' property. Consider adding a 'description' element. Accurate description is essential for maintaining reference documentation.
    Location: Microsoft.RecoveryServices/stable/2020-10-01/vaults.json#L776
    ⚠️ R4021 - DescriptionAndTitleMissing 'systemData' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation.
    Location: Microsoft.RecoveryServices/stable/2020-10-01/vaults.json#L1132
    ⚠️ R4021 - DescriptionAndTitleMissing 'keyVaultProperties' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation.
    Location: Microsoft.RecoveryServices/stable/2020-10-01/vaults.json#L1313
    ⚠️ R4021 - DescriptionAndTitleMissing 'kekIdentity' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation.
    Location: Microsoft.RecoveryServices/stable/2020-10-01/vaults.json#L1316
    ⚠️ R4021 - DescriptionAndTitleMissing 'error' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation.
    Location: Microsoft.RecoveryServices/stable/2020-10-01/vaults.json#L1609
    ️️✔️Avocado succeeded [Detail] [Expand]
    Validation passes for Avocado.
    ️️✔️ModelValidation succeeded [Detail] [Expand]
    Validation passes for ModelValidation.
    ️️✔️SemanticValidation succeeded [Detail] [Expand]
    Validation passes for SemanticValidation.
    ️️✔️[Staging] Cross Version BreakingChange (Base on preview version) succeeded [Detail] [Expand]
    There are no breaking changes.
    ️⚠️[Staging] Cross Version BreakingChange (Base on stable version): 6 Warnings warning [Detail]

    Rule Message
    ⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'eTag' renamed or removed?
    New: Microsoft.RecoveryServices/stable/2020-10-01/vaults.json#L1122:7
    Old: Microsoft.RecoveryServices/stable/2020-02-02/vaults.json#L1118:7
    ⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'eTag' renamed or removed?
    New: Microsoft.RecoveryServices/stable/2020-10-01/vaults.json#L1198:7
    Old: Microsoft.RecoveryServices/stable/2020-02-02/vaults.json#L1138:7
    ⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'eTag' renamed or removed?
    New: Microsoft.RecoveryServices/stable/2020-10-01/vaults.json#L1240:7
    Old: Microsoft.RecoveryServices/stable/2020-02-02/vaults.json#L1180:7
    ⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'eTag' renamed or removed?
    New: Microsoft.RecoveryServices/stable/2020-10-01/vaults.json#L947:7
    Old: Microsoft.RecoveryServices/stable/2020-02-02/vaults.json#L947:7
    ⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'eTag' renamed or removed?
    New: Microsoft.RecoveryServices/stable/2020-10-01/vaults.json#L1006:7
    Old: Microsoft.RecoveryServices/stable/2020-02-02/vaults.json#L1002:7
    ⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'eTag' renamed or removed?
    New: Microsoft.RecoveryServices/stable/2020-10-01/vaults.json#L1028:7
    Old: Microsoft.RecoveryServices/stable/2020-02-02/vaults.json#L1024:7
    ️️✔️CredScan succeeded [Detail] [Expand]
    There is no credential detected.
    ️⚠️[Staging] SDK Track2 Validation: 4 Warnings warning [Detail]

    Rule Message
    ⚠️ PreCheck/SchemaMissingType "readme":"recoveryservices/resource-manager/readme.md",
    "tag":"package-2020-10",
    "details":"The schema 'CloudError' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'"
    ⚠️ PreCheck/SchemaMissingType "readme":"recoveryservices/resource-manager/readme.md",
    "tag":"package-2020-10",
    "details":"The schema 'Error' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'"
    ⚠️ PreCheck/SchemaMissingType "readme":"recoveryservices/resource-manager/readme.md",
    "tag":"package-2020-10",
    "details":"The schema 'ErrorAdditionalInfo' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'"
    ⚠️ PreCheck/CheckDuplicateSchemas "readme":"recoveryservices/resource-manager/readme.md",
    "tag":"package-2020-10",
    "details":"Checking for duplicate schemas,
    this could take a (long) while. Run with --verbose for more detail."
    ️️✔️[Staging] PrettierCheck succeeded [Detail] [Expand]
    Validation passes for PrettierCheck.
    ️️✔️[Staging] SpellCheck succeeded [Detail] [Expand]
    Validation passes for SpellCheck.
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Feb 10, 2021

    Swagger pipeline restarted successfully, please wait for status update in this comment.

    @openapi-workflow-bot
    Copy link

    In the Window Period to fix mismatches between swagger and service, when PR is labelled with “FixS360”, breaking change can be approved by PR assignee; the Azure Breaking Change Board is no longer required to approve the PR. Please ensure to clarify what s360 action items to be solved, and @ mention PR assignee for awareness. Please check this wiki Window to Fix Broken for more details.

    @openapi-workflow-bot
    Copy link

    Hi, @amchandn your PR are labelled with WaitForARMFeedback. A notification email will be sent out shortly afterwards to notify ARM review board(armapireview@microsoft.com). cc @markcowl

    @openapi-workflow-bot openapi-workflow-bot bot added the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label Feb 10, 2021
    @amchandn
    Copy link
    Contributor Author

    @markcowl , the following tests have not ran for my latest iteration and have been in expected state for a couple of hours now..
    Do I need to do something to trigger them manually?

    image

    @markcowl
    Copy link
    Member

    /azp run

    @azure-pipelines
    Copy link

    Azure Pipelines successfully started running 2 pipeline(s).

    @markcowl
    Copy link
    Member

    /azp run Swagger

    @azure-pipelines
    Copy link

    No pipelines are associated with this pull request.

    @markcowl
    Copy link
    Member

    /azp run CredScan

    @azure-pipelines
    Copy link

    No pipelines are associated with this pull request.

    @markcowl
    Copy link
    Member

    /azp run Swagger Avocado

    @azure-pipelines
    Copy link

    No pipelines are associated with this pull request.

    @varunkumta varunkumta added ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review and removed WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required labels Feb 12, 2021
    @markcowl
    Copy link
    Member

    /azp run

    @azure-pipelines
    Copy link

    Azure Pipelines successfully started running 2 pipeline(s).

    @markcowl markcowl merged commit e573193 into Azure:master Feb 16, 2021
    mkarmark pushed a commit to mkarmark/azure-rest-api-specs that referenced this pull request Jul 21, 2021
    * Adding recoveryservices swagger for 2020-10-01
    
    * Changing default api-version in readme.md
    
    * Changing sku.tier to string
    
    * Fixing api-version
    
    * Testing changes to 2016-06-01
    
    * Adding missing definitions
    
    * Reverting case change for eTag
    
    * restoring vaults.json
    
    * prettier fix
    
    * Adding systemData to Vaults
    
    * Adding definition of systemData
    
    * restoring registeredidentities.json
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review FixS360
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    3 participants