java.lang.Object
org.eclipse.lemminx.customservice.synapse.utils.SwaggerUtils

public class SwaggerUtils extends Object
  • Constructor Details

    • SwaggerUtils

      public SwaggerUtils()
  • Method Details

    • compareOpenAPIs

      public static boolean compareOpenAPIs(io.swagger.v3.oas.models.OpenAPI openAPI1, io.swagger.v3.oas.models.OpenAPI openAPI2)
      Compares the paths of two OpenAPI specifications and returns whether they are equal.

      This method extracts the PathItem mappings from both the generated and existing OpenAPI specifications and delegates the comparison to comparePaths.

      Parameters:
      openAPI1 - the generated OpenAPI specification to compare.
      openAPI2 - the existing OpenAPI specification to compare against.
      Returns:
      true if the paths in both OpenAPI specifications are equal, false otherwise.