# Class: ParameterTypeValidator

## vertx-web-api-contract-js/parameter_type_validator~ ParameterTypeValidator

#### new ParameterTypeValidator()

Interface for declaration of method for validate a specific parameter type.
If you want to implement your own type validator, you need only to implement

Source:
  - vertx-web-api-contract-js/parameter_type_validator.js, line 30

### Methods

#### getDefault() → {Object}

Returns default value of parameter

Source:
  - vertx-web-api-contract-js/parameter_type_validator.js, line 72

##### Returns:

Type
  Object

#### isValid(value) → {RequestParameter}

Function that checks if parameter is valid. It returns a RequestParameter object that will be linked inside . For more info, check .

##### Parameters:

Name | Type | Description
--- | --- | ---
`value` | string | value of parameter to test

Source:
  - vertx-web-api-contract-js/parameter_type_validator.js, line 43

##### Returns:

request parameter value

Type
  RequestParameter

#### isValidCollection(value) → {RequestParameter}

Function that checks if array of values of a specific parameter. It returns a RequestParameter object that will be linked inside . For more info, check .

##### Parameters:

Name | Type | Description
--- | --- | ---
`value` | Array.<string> | list of values of parameter to test

Source:
  - vertx-web-api-contract-js/parameter_type_validator.js, line 58

##### Returns:

request parameter value

Type
  RequestParameter