code: function getRefType (ref) {
    const val = getRefValue(ref)
    if (val) {
      if (validUrl.isWebUri(val)) {
        return 'web'
      }
      if ((validUrl.isUri(val) && val.indexOf('file:') === '0') || (val.indexOf('.json') > 0) || isValidPath(val)) {
        return 'file'
      }
      if ((val.charAt(0) === '#') || (!validUrl.isUri(val))) {
        return 'local'
      }
    }
  }
docs: Gets the type of $ref from search result object.
  @param ref The search result object from prop-search or a ref object
  @returns {string}  `web` if it's a web url.
  `file` if it's a file path.
  `local` if it's a link to local schema.
  undefined otherwise
  @private