getRequiredData(spec) {
    return {
      info: spec.info,
      components: spec.components ? spec.components : [],
      paths: spec.paths
    };
  }
Get the required elements for conversion from spec parsed data
@param {object} spec openapi parsed value
@returns {object} required elements to convert