Class OpenApiFileHelper

java.lang.Object
org.sdase.commons.server.openapi.OpenApiFileHelper

public class OpenApiFileHelper extends Object
  • Method Details

    • normalizeOpenApiYaml

      public static String normalizeOpenApiYaml(String yaml)
      Normalize an textual OpenApi in the yaml format and remove all environment-specific contents.
      • Removes the servers list that is automatically generated by ServerUrlFilter but disrupts the repeatability in tests where the application run on random ports.
      Parameters:
      yaml - the content of the openapi.yaml file
      Returns:
      the cleaned up yaml