Class SwaggerUtils
java.lang.Object
org.eclipse.lemminx.customservice.synapse.utils.SwaggerUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancompareOpenAPIs(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.
-
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
PathItemmappings from both the generated and existing OpenAPI specifications and delegates the comparison tocomparePaths.- Parameters:
openAPI1- the generatedOpenAPIspecification to compare.openAPI2- the existingOpenAPIspecification to compare against.- Returns:
trueif the paths in both OpenAPI specifications are equal,falseotherwise.
-