function shouldAddDeprecatedOperation (operation, options) {
  if (typeof operation === 'object') {
    return !operation.deprecated ||
      (operation.deprecated === true && options.includeDeprecated === true);
  }
  return false;
}
Verifies if the deprecated operations should be added

@param {object} operation - openAPI operation object
@param {object} options - a standard list of options that's globally passed around. Check options.js for more.
@returns {boolean} whether to add or not the deprecated operation