Skip to content

Comments

reuse ControllerDetails definition in dnc 2020-08-08-preview#11578

Closed
ctaggart wants to merge 1 commit intoAzure:masterfrom
ctaggart:dnc
Closed

reuse ControllerDetails definition in dnc 2020-08-08-preview#11578
ctaggart wants to merge 1 commit intoAzure:masterfrom
ctaggart:dnc

Conversation

@ctaggart
Copy link
Contributor

@ctaggart ctaggart commented Nov 8, 2020

A code generator I'm using generates duplicate ControllerDetails types for dnc 2020-08-08-preview. It is defining the type in two different input files instead of just using references. It should also reference common types for the common parameters instead of duplicating them. This pull request, just reuses a ControllerDetails definition, which fixes it for the code generator I'm using.

input-file:

  • Microsoft.DelegatedNetwork/preview/2020-08-08-preview/controller.json
  • Microsoft.DelegatedNetwork/preview/2020-08-08-preview/orchestrators.json
  • Microsoft.DelegatedNetwork/preview/2020-08-08-preview/delegatedSubnets.json
  • Microsoft.DelegatedNetwork/preview/2020-08-08-preview/operations.json

image

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Nov 8, 2020

Swagger Validation Report

️❌BreakingChange: 2 Errors, 0 Warnings failed [Detail] [Expand]

Rule Message
1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'subnetDetails' removed or renamed?
New: Microsoft.DelegatedNetwork/preview/2020-08-08-preview/delegatedSubnets.json#L311:3
Old: Microsoft.DelegatedNetwork/preview/2020-08-08-preview/delegatedSubnets.json#L311:3
1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'controllerDetails' removed or renamed?
New: Microsoft.DelegatedNetwork/preview/2020-08-08-preview/delegatedSubnets.json#L311:3
Old: Microsoft.DelegatedNetwork/preview/2020-08-08-preview/delegatedSubnets.json#L311:3
️️✔️~[Staging] LintDiff succeeded [Detail]
Validation passes for LintDiff.

️️✔️~[Staging] Avocado succeeded [Detail]
Validation passes for Avocado.
️️✔️~[Staging] ModelValidation succeeded [Detail]
Validation passes for ModelValidation.
️️✔️~[Staging] SemanticValidation succeeded [Detail]
Validation passes for SemanticValidation.
️️✔️~[Staging] Cross Version BreakingChange (Base on preview version) succeeded [Detail]
There are no breaking changes.
️️✔️~[Staging] Cross Version BreakingChange (Base on stable version) succeeded [Detail]
There are no breaking changes.
Posted by Swagger Pipeline | How to fix these errors?

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Nov 8, 2020

Swagger Generation Artifacts

️️✔️~[Staging] ApiDocPreview succeeded [Detail]
 Please click here to preview with your @microsoft account. 
Posted by Swagger Pipeline | How to fix these errors?

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Nov 8, 2020

azure-sdk-for-js

⚠️ warning [Logs] [Expand Details]
  • ⚠️ Generate from fd8fcf1 with merge commit e3d9b529e2b03735a65e36595595b387434e6b0f. SDK Automation 13.0.17.20200918.2
    Failed to find any diff after autorest so no changed packages was found.

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Nov 8, 2020

azure-resource-manager-schemas

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 Nov 8, 2020

Trenton Generation

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 Nov 8, 2020

azure-sdk-for-go

️✔️ succeeded [Logs] [Expand Details]

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Nov 8, 2020

Azure CLI Extension Generation

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 Nov 8, 2020

azure-sdk-for-java

⚠️ warning [Logs] [Expand Details]
  • ⚠️ Generate from fd8fcf1 with merge commit e3d9b529e2b03735a65e36595595b387434e6b0f. SDK Automation 13.0.17.20200918.2
  • ⚠️sdk/DelegatedNetwork/mgmt-2020-08-08-preview [View full logs]  [Preview SDK Changes]
      [mvn] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.8:jar (default-cli) on project azure-mgmt-delegatednetwork: MavenReportException: Error while creating archive: 
      [mvn] [ERROR] Exit code: 1 - javadoc: error - Illegal package name: "com.microsoft.azure.management.delegatednetwork.2020-08-08-preview"
      [mvn] [ERROR] 
      [mvn] [ERROR] Command line was: /usr/lib/jvm/java-8-openjdk-amd64/jre/../bin/javadoc @options @packages
      [mvn] [ERROR] 
      [mvn] [ERROR] Refer to the generated Javadoc files in '/z/work/azure-sdk-for-java/sdk/DelegatedNetwork/mgmt-2020-08-08-preview/target/apidocs' dir.
      [mvn] [ERROR] -> [Help 1]
      [mvn] [ERROR] 
      [mvn] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [mvn] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [mvn] [ERROR] 
      [mvn] [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [mvn] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

    @openapi-sdkautomation
    Copy link

    openapi-sdkautomation bot commented Nov 8, 2020

    azure-sdk-for-python-track2

    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 Nov 8, 2020

    azure-sdk-for-python

    ⚠️ warning [Logs] [Expand Details]
    • ⚠️ Generate from fd8fcf1 with merge commit e3d9b529e2b03735a65e36595595b387434e6b0f. SDK Automation 13.0.17.20200918.2
      Failed to find any diff after autorest so no changed packages was found.

    @openapi-sdkautomation
    Copy link

    openapi-sdkautomation bot commented Nov 8, 2020

    azure-sdk-for-net

    ️✔️ succeeded [Logs] [Expand Details]
    • ️✔️ Generate from fd8fcf1 with merge commit e3d9b529e2b03735a65e36595595b387434e6b0f. SDK Automation 13.0.17.20200918.2
      [AutoRest] realpath(): Permission denied
      [AutoRest] realpath(): Permission denied
      [AutoRest] realpath(): Permission denied
      [AutoRest] realpath(): Permission denied
      [AutoRest] realpath(): Permission denied
      [AutoRest] realpath(): Permission denied
    • ️✔️Microsoft.Azure.Management.DelegatedNetwork [View full logs]  [Preview SDK Changes]
        No Artifact Generated.

      @ctaggart
      Copy link
      Contributor Author

      ctaggart commented Nov 8, 2020

      See #10819. It made these two definitions:

      orchestrators.json

          "ControllerDetails": {
            "description": "controller details",
            "type": "object",
            "properties": {
              "id": {
                "description": "controller arm resource id",
                "type": "string"
              }
            }
          },

      delegatedSubnets.json

          "controllerDetails": {
            "description": "controller details",
            "type": "object",
            "properties": {
              "id": {
                "description": "controller arm resource id",
                "type": "string"
              }
            }
          },

      @openapi-workflow-bot
      Copy link

      Hi @ctaggart, 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.
      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.
      If you think it is false positive breaking change, please provide the reasons in the PR comment, report to Swagger Tooling Team via https://aka.ma/swaggerfeedback.

      @ghost
      Copy link

      ghost commented Dec 22, 2020

      Hi, ctaggart. Your PR has no update for 14 days and it is marked as stale PR. If no further update for over 14 days, the bot will close the PR. If you want to refresh the PR, please remove no-recent-activity label.

      @ghost ghost added the no-recent-activity label Dec 22, 2020
      @ctaggart
      Copy link
      Contributor Author

      This pull request should have been reviewed and merged, but it was not.

      @ctaggart ctaggart closed this Dec 28, 2020
      @ctaggart ctaggart deleted the dnc branch November 7, 2021 19:45
      Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

      Labels

      None yet

      Projects

      None yet

      Development

      Successfully merging this pull request may close these issues.

      2 participants