function ParamValidator(validation) {
    if (validation === true || validation === undefined) {
      validation = {'min': true};
    }
    this.validation = validation;
  }
function ParamValidator(validation) {
    if (validation === true || validation === undefined) {
      validation = {'min': true};
    }
    this.validation = validation;
  }
function ParamValidator ( validation ) { if ( validation === true || validation === undefined ) { validation = { 'min' : true } ; } this . validation = validation ; }
Create a new validator object.

@param validation [Boolean|map] whether input parameters should be
validated against the operation description before sending the
request. Pass a map to enable any of the following specific
validation features:

* **min** [Boolean] &mdash; Validates that a value meets the min
constraint. This is enabled by default when paramValidation is set
to `true`.
* **max** [Boolean] &mdash; Validates that a value meets the max
constraint.
* **pattern** [Boolean] &mdash; Validates that a string value matches a
regular expression.
* **enum** [Boolean] &mdash; Validates that a string value matches one
of the allowable enum values.
Create a new validator object .
A validator for the param