Class RefUtils


  • public class RefUtils
    extends Object
    • Method Detail

      • computeDefinitionName

        public static String computeDefinitionName​(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,
                                                io.swagger.v3.parser.urlresolver.PermittedUrlsChecker permittedUrlsChecker)
      • readExternalClasspathRef

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

        @Deprecated
        public static String readExternalRef​(String file,
                                             RefFormat refFormat,
                                             List<io.swagger.v3.parser.core.models.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<io.swagger.v3.parser.core.models.AuthorizationValue> auths,
                                             Path parentDirectory,
                                             io.swagger.v3.parser.urlresolver.PermittedUrlsChecker permittedUrlsChecker)