Package io.swagger.v3.parser.util
Class RefUtils
- java.lang.Object
-
- io.swagger.v3.parser.util.RefUtils
-
public class RefUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
buildUrl(String rootPath, String relativePath)
static String
computeDefinitionName(String ref)
static RefFormat
computeRefFormat(String ref)
static Optional<String>
getExternalPath(String ref)
static boolean
isAnExternalRefFormat(RefFormat refFormat)
static String
mungedRef(String refString)
static String
readExternalClasspathRef(String file, RefFormat refFormat, List<AuthorizationValue> auths, String rootPath)
static String
readExternalRef(String file, RefFormat refFormat, List<AuthorizationValue> auths, Path parentDirectory)
static String
readExternalUrlRef(String file, RefFormat refFormat, List<AuthorizationValue> auths, String rootPath)
-
-
-
Method Detail
-
isAnExternalRefFormat
public static boolean isAnExternalRefFormat(RefFormat refFormat)
-
readExternalUrlRef
public static String readExternalUrlRef(String file, RefFormat refFormat, List<AuthorizationValue> auths, String rootPath)
-
readExternalClasspathRef
public static String readExternalClasspathRef(String file, RefFormat refFormat, List<AuthorizationValue> auths, String rootPath)
-
-