> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nanoforge.eu/llms.txt
> Use this file to discover all available pages before exploring further.

# Validate

> Performs validation based on the given custom validation class. Validation class must be decorated with ValidatorConstraint decorator.

## Call Signature

> **Validate**(`constraintClass`, `validationOptions?`): `PropertyDecorator`

Defined in: node\_modules/.pnpm/class-validator\@0.14.4/node\_modules/class-validator/types/decorator/common/Validate.d.ts:13

Performs validation based on the given custom validation class.
Validation class must be decorated with ValidatorConstraint decorator.

### Parameters

#### constraintClass

`Function`

#### validationOptions?

`ValidationOptions`

### Returns

`PropertyDecorator`

## Call Signature

> **Validate**(`constraintClass`, `constraints?`, `validationOptions?`): `PropertyDecorator`

Defined in: node\_modules/.pnpm/class-validator\@0.14.4/node\_modules/class-validator/types/decorator/common/Validate.d.ts:14

Performs validation based on the given custom validation class.
Validation class must be decorated with ValidatorConstraint decorator.

### Parameters

#### constraintClass

`Function`

#### constraints?

`any`\[]

#### validationOptions?

`ValidationOptions`

### Returns

`PropertyDecorator`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.