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 Deprecated 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, PermittedUrlsChecker permittedUrlsChecker)static StringreadExternalRef(String file, RefFormat refFormat, List<AuthorizationValue> auths, Path parentDirectory)Deprecated.- new readExternalRef with PermittedUrlsChecker is preferred because it prevents bypassing security checksstatic StringreadExternalRef(String file, RefFormat refFormat, List<AuthorizationValue> auths, Path parentDirectory, PermittedUrlsChecker permittedUrlsChecker)static StringreadExternalUrlRef(String file, RefFormat refFormat, List<AuthorizationValue> auths, String rootPath, PermittedUrlsChecker permittedUrlsChecker)
-
-
-
Method Detail
-
isAnExternalRefFormat
public static boolean isAnExternalRefFormat(RefFormat refFormat)
-
readExternalUrlRef
public static String readExternalUrlRef(String file, RefFormat refFormat, List<AuthorizationValue> auths, String rootPath, PermittedUrlsChecker permittedUrlsChecker)
-
readExternalClasspathRef
public static String readExternalClasspathRef(String file, RefFormat refFormat, List<AuthorizationValue> auths, String rootPath, PermittedUrlsChecker permittedUrlsChecker)
-
readExternalRef
@Deprecated public static String readExternalRef(String file, RefFormat refFormat, List<AuthorizationValue> auths, Path parentDirectory)
Deprecated.- new readExternalRef with PermittedUrlsChecker is preferred because it prevents bypassing security checks
-
readExternalRef
public static String readExternalRef(String file, RefFormat refFormat, List<AuthorizationValue> auths, Path parentDirectory, PermittedUrlsChecker permittedUrlsChecker)
-
-