code: function generateResourceListingForVersion(options) {
    var clone = JSON.parse(JSON.stringify(options.rootDocument));
    if (!clone.info.version) {
      //Set baucis version if not provided previously by options
      clone.info.version = options.version;
    }
    clone.paths = clone.paths || {};
    mergeIn(clone.paths, buildPaths(options.controllers));
  
    clone.components.schemas = clone.components.schemas || {};
    var compo2 = buildComponents(options, options.controllers);
    mergeIn(clone.components.schemas, compo2.schemas);
  
    return clone;
  }
docs: build an specific spec based on options and filtered controllers