Class RefUtils

java.lang.Object
io.swagger.v3.parser.util.RefUtils

public class RefUtils extends Object
  • Method Details

    • computeDefinitionName

      public static String computeDefinitionName(String ref)
    • getExternalPath

      public static Optional<String> getExternalPath(String ref)
    • isAnExternalRefFormat

      public static boolean isAnExternalRefFormat(RefFormat refFormat)
    • computeRefFormat

      public static RefFormat computeRefFormat(String ref)
    • mungedRef

      public static String mungedRef(String refString)
    • readExternalUrlRef

      public static String readExternalUrlRef(String file, RefFormat refFormat, List<io.swagger.v3.parser.core.models.AuthorizationValue> auths, String rootPath)
    • readExternalClasspathRef

      public static String readExternalClasspathRef(String file, RefFormat refFormat, List<io.swagger.v3.parser.core.models.AuthorizationValue> auths, String rootPath)
    • buildUrl

      public static String buildUrl(String rootPath, String relativePath)
    • readExternalRef

      public static String readExternalRef(String file, RefFormat refFormat, List<io.swagger.v3.parser.core.models.AuthorizationValue> auths, Path parentDirectory)