mapGetRootFilesOutputToDetectRootFilesOutput(output, version) {
    if (!version) {
      version = '3.0';
    }
    let adaptedData = output.map((file) => {
      return { path: file };
    });
    return {
      result: true,
      output: {
        type: 'rootFiles',
        specification: {
          type: 'OpenAPI',
          version: version
        },
        data: adaptedData
      }
    };
  }
Maps the output from get root files to detect root files
@param {object} output - output schema
@param {string} version - specified version of the process
@returns {object} - Detect root files result object