Class OpenApiFileHelper


  • public class OpenApiFileHelper
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String normalizeOpenApiYaml​(java.lang.String yaml)
      Normalize an textual OpenApi in the yaml format and remove all environment-specific contents.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • normalizeOpenApiYaml

        public static java.lang.String normalizeOpenApiYaml​(java.lang.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