lib/framework/middleware.js
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;
}
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;
}
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 ; }
Setup validation options.
Setup validation options .