code: function validateOptions(operation, type, useCoerce) {
    var options = { useCoerce: useCoerce };
  
    // capitalize type
    var suffix = type[0].toUpperCase() + type.slice(1);
  
    // Get remove option (ex: options.removeHeader)
    var removeAdditional = lookup(operation, 'options', 'remove' + suffix);
  
    if (typeof removeAdditional === 'undefined') {
      removeAdditional = true;
    }
    options.removeAdditional = !!removeAdditional;
  
    return options;
  }
docs: Setup validation options.