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

Fix missing type in netapp, update on PR 8170 - ANF-4290ClarifyMsftChangeToANFSwagger #8783

Merged
merged 5 commits into from
Mar 21, 2020

Conversation

audunn
Copy link
Member

@audunn audunn commented Mar 20, 2020

Latest improvements:

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

Contribution checklist:

  • I have reviewed the documentation for the workflow.
  • Validation tools were run on swagger spec(s) and have all been fixed in this PR.
  • The OpenAPI Hub was used for checking validation status and next steps.

ARM API Review Checklist

  • Service team MUST add the "WaitForARMFeedback" label if the management plane API changes fall into one of the below categories.
  • adding/removing APIs.
  • adding/removing properties.
  • adding/removing API-version.
  • adding a new service in Azure.

Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.

  • If you are blocked on ARM review and want to get the PR merged urgently, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
    Please follow the link to find more details on API review process.

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@azuresdkci
Copy link
Contributor

Can one of the admins verify this patch?

@audunn
Copy link
Member Author

audunn commented Mar 20, 2020

This adds on previous update from #8170 that added "type": "array" to correct an issue with MountTargets, since the MountTargets property is in fact a list of mountTargets not mountTargetList it is probably more accurate to do it like this

    "mountTargets": {
          "title": "mountTargets",
          "type": "array",
          "description": "List of mount targets",
          "items": {
            "$ref": "#/definitions/mountTarget"
          }

This is triggering BreakingChange validation, even if I revert to the solution from the prev PR and just apply that to API version 2019-11-01 (left out) it still fails breakingChange. Not sure what is causing that

Also applies this change to 2019-11-01 since that was omitted from the previous PR.

related issue #8604

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Mar 20, 2020

azure-sdk-for-go - Release

⚠️ warning [Logs] [Expand Details]
  • ⚠️ Generate from 184eab9 with merge commit 13173f1. SDK Automation 13.0.17.20200320.2
  • ⚠️netapp/mgmt/2019-05-01 [Logs
      No file is changed.
    • ⚠️netapp/mgmt/2019-06-01 [Logs
        No file is changed.
      • ⚠️netapp/mgmt/2019-07-01 [Logs
          No file is changed.
        • ⚠️netapp/mgmt/2019-08-01 [Logs
            No file is changed.
          • ⚠️netapp/mgmt/2019-10-01 [Logs
              No file is changed.
            • ️✔️netapp/mgmt/2019-11-01 [Logs]  [Release SDK Changes]
            • ⚠️preview/netapp/mgmt/2017-08-15 [Logs
                No file is changed.

              @openapi-sdkautomation
              Copy link

              openapi-sdkautomation bot commented Mar 20, 2020

              azure-cli-extensions - Release

              No readme.md specification configuration files were found that are associated with the files modified in this pull request, or swagger_to_sdk section in readme.md is not configured

              @openapi-sdkautomation
              Copy link

              openapi-sdkautomation bot commented Mar 20, 2020

              azure-sdk-for-js - Release

              ️✔️ succeeded [Logs] [Expand Details]
              • ️✔️ Generate from 184eab9 with merge commit 13173f1. SDK Automation 13.0.17.20200320.2
              • ️✔️@azure/arm-netapp [Logs]  [Release SDK Changes]
                [npmPack] npm WARN lifecycle @azure/arm-netapp@7.0.0~prepack: cannot run in wd @azure/arm-netapp@7.0.0 npm install && npm run build (wd=/z/work/azure-sdk-for-js/sdk/netapp/arm-netapp)

              @openapi-sdkautomation
              Copy link

              openapi-sdkautomation bot commented Mar 20, 2020

              @openapi-sdkautomation
              Copy link

              openapi-sdkautomation bot commented Mar 20, 2020

              azure-sdk-for-net - Release

              failed [Logs] [Expand Details]
              • Generate from 184eab9 with merge commit 13173f1. SDK Automation 13.0.17.20200320.2
              • Microsoft.Azure.Management.NetApp [Logs]  [Release SDK Changes]
                  Failed to create the package Microsoft.Azure.Management.NetApp.
                  Error: dotnet msbuild build.proj /t:CreateNugetPackage /p:Scope=netapp /v:n /p:SkipTests=true , {} 

                @openapi-sdkautomation
                Copy link

                openapi-sdkautomation bot commented Mar 20, 2020

                azure-sdk-for-python - Release

                - Breaking Change detected in SDK

                ⚠️ warning [Logs] [Expand Details]
                • ⚠️ Generate from 184eab9 with merge commit 13173f1. SDK Automation 13.0.17.20200320.2
                • ⚠️azure-mgmt-netapp [Logs]  [Release SDK Changes] Breaking Change Detected
                  [build_package] /usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
                  [build_package]   warnings.warn(msg)
                  [build_package] /usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
                  [build_package]   warnings.warn(msg)
                  [breaking_change_setup] Ignoring mock: markers 'python_version <= "2.7"' don't match your environment
                  [breaking_change_setup] Cannot uninstall requirement azure-nspkg, not installed
                  [breaking_change_setup] Command '['/usr/local/bin/python', '-m', 'pip', 'uninstall', '-y', 'azure-nspkg']' returned non-zero exit status 1.
                  [ChangeLog] Size of delta 7.391% size of original (original: 26870 chars, delta: 1986 chars)
                  [ChangeLog] **Features**
                  [ChangeLog] 
                  [ChangeLog] - Model ActiveDirectory has a new parameter site
                  [ChangeLog] - Added operation VolumesOperations.revert
                  [ChangeLog] 
                  [ChangeLog] **Breaking changes**
                  [ChangeLog] 
                  [ChangeLog] - Operation SnapshotsOperations.update has a new signature
                  [ChangeLog] - Operation SnapshotsOperations.update has a new signature
                  [ChangeLog] - Operation SnapshotsOperations.create has a new signature
                  [ChangeLog] - Model MountTarget no longer has parameter netmask
                  [ChangeLog] - Model MountTarget no longer has parameter end_ip
                  [ChangeLog] - Model MountTarget no longer has parameter subnet
                  [ChangeLog] - Model MountTarget no longer has parameter provisioning_state
                  [ChangeLog] - Model MountTarget no longer has parameter gateway
                  [ChangeLog] - Model MountTarget no longer has parameter start_ip
                  [ChangeLog] - Model Snapshot no longer has parameter tags
                  [ChangeLog] - Removed operation group MountTargetsOperations

                This was referenced Mar 20, 2020
                @azure-pipelines
                Copy link

                Azure Pipelines successfully started running 1 pipeline(s).

                @azure-pipelines
                Copy link

                Azure Pipelines successfully started running 1 pipeline(s).

                @anthony-c-martin anthony-c-martin added the ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review label Mar 20, 2020
                @weidongxu-microsoft
                Copy link
                Member

                weidongxu-microsoft commented Mar 21, 2020

                @akning-ms
                Could you help merge it? I cannot due to BreakingChange.

                This is a similar fix as #8170
                "type" is missing in previous spec (which is wrong). Hence the breaking change.

                @akning-ms akning-ms merged commit 13173f1 into Azure:master Mar 21, 2020
                @akning-ms akning-ms added the LintRuleCandidate Lint Rule Candidate label Mar 21, 2020
                00Kai0 pushed a commit to 00Kai0/azure-rest-api-specs that referenced this pull request Oct 12, 2020
                …angeToANFSwagger (Azure#8783)
                
                * Fix missing type in netapp, ANF-4290ClarifyMsftChangeToANFSwagger
                
                * check breaking change validation issue
                
                * Change to list of MountTargets
                
                * Remove change to list of MountTargets, check breaking change
                
                * Fix change to list of MountTargets
                
                Co-authored-by: Audunn Baldvinsson <audunn.baldvinsson@netapp.com>
                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 LintRuleCandidate Lint Rule Candidate
                Projects
                None yet
                Development

                Successfully merging this pull request may close these issues.

                5 participants