function getJsonPointerRelationToRoot(refValue, traceFromKey, version) {
  let targetInRoot = isSwagger(version) ? '' : '/components';
  if (refValue.startsWith(localPointer)) {
    return refValue;
  }
  return concatJsonPointer(traceFromKey, targetInRoot);
}
genereates the json pointer relative to the root
@constructor
@param {string} refValue the type of component e.g. schemas, parameters, etc.
@param {string} traceFromKey the trace from the parent node.
@param {string} version - The version we are working on
@returns {string} - the concatenated json pointer