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 StringbuildUrl(String rootPath, String relativePath)static StringcomputeDefinitionName(String ref)static RefFormatcomputeRefFormat(String ref)static Optional<String>getExternalPath(String ref)static booleanisAnExternalRefFormat(RefFormat refFormat)static StringmungedRef(String refString)static StringreadExternalClasspathRef(String file, RefFormat refFormat, List<AuthorizationValue> auths, String rootPath)static StringreadExternalRef(String file, RefFormat refFormat, List<AuthorizationValue> auths, Path parentDirectory)static StringreadExternalUrlRef(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)
-
-