Skip to main content

Class: I18nValidationPipe

Hierarchy

  • ValidationPipe

    I18nValidationPipe

Constructors

constructor

new I18nValidationPipe(options?)

Parameters

NameType
options?I18nValidationPipeOptions

Overrides

ValidationPipe.constructor

Defined in

src/pipes/i18n-validation.pipe.ts:15

Properties

errorHttpStatusCode

Protected errorHttpStatusCode: ErrorHttpStatusCode

Inherited from

ValidationPipe.errorHttpStatusCode

Defined in

node_modules/@nestjs/common/pipes/validation.pipe.d.ts:33


exceptionFactory

Protected exceptionFactory: (errors: ValidationError[]) => any

Type declaration

▸ (errors): any

Parameters
NameType
errorsValidationError[]
Returns

any

Inherited from

ValidationPipe.exceptionFactory

Defined in

node_modules/@nestjs/common/pipes/validation.pipe.d.ts:35


expectedType

Protected expectedType: Type<any>

Inherited from

ValidationPipe.expectedType

Defined in

node_modules/@nestjs/common/pipes/validation.pipe.d.ts:34


isDetailedOutputDisabled

Protected Optional isDetailedOutputDisabled: boolean

Inherited from

ValidationPipe.isDetailedOutputDisabled

Defined in

node_modules/@nestjs/common/pipes/validation.pipe.d.ts:30


isTransformEnabled

Protected isTransformEnabled: boolean

Inherited from

ValidationPipe.isTransformEnabled

Defined in

node_modules/@nestjs/common/pipes/validation.pipe.d.ts:29


transformOptions

Protected transformOptions: ClassTransformOptions

Inherited from

ValidationPipe.transformOptions

Defined in

node_modules/@nestjs/common/pipes/validation.pipe.d.ts:32


validateCustomDecorators

Protected validateCustomDecorators: boolean

Inherited from

ValidationPipe.validateCustomDecorators

Defined in

node_modules/@nestjs/common/pipes/validation.pipe.d.ts:36


validatorOptions

Protected validatorOptions: ValidatorOptions

Inherited from

ValidationPipe.validatorOptions

Defined in

node_modules/@nestjs/common/pipes/validation.pipe.d.ts:31

Methods

createExceptionFactory

createExceptionFactory(): (validationErrors?: ValidationError[]) => unknown

Returns

fn

▸ (validationErrors?): unknown

Parameters
NameType
validationErrors?ValidationError[]
Returns

unknown

Inherited from

ValidationPipe.createExceptionFactory

Defined in

node_modules/@nestjs/common/pipes/validation.pipe.d.ts:41


flattenValidationErrors

Protected flattenValidationErrors(validationErrors): string[]

Parameters

NameType
validationErrorsValidationError[]

Returns

string[]

Inherited from

ValidationPipe.flattenValidationErrors

Defined in

node_modules/@nestjs/common/pipes/validation.pipe.d.ts:48


isPrimitive

Protected isPrimitive(value): boolean

Parameters

NameType
valueunknown

Returns

boolean

Inherited from

ValidationPipe.isPrimitive

Defined in

node_modules/@nestjs/common/pipes/validation.pipe.d.ts:46


loadTransformer

Protected loadTransformer(transformerPackage?): TransformerPackage

Parameters

NameType
transformerPackage?TransformerPackage

Returns

TransformerPackage

Inherited from

ValidationPipe.loadTransformer

Defined in

node_modules/@nestjs/common/pipes/validation.pipe.d.ts:39


loadValidator

Protected loadValidator(validatorPackage?): ValidatorPackage

Parameters

NameType
validatorPackage?ValidatorPackage

Returns

ValidatorPackage

Inherited from

ValidationPipe.loadValidator

Defined in

node_modules/@nestjs/common/pipes/validation.pipe.d.ts:38


mapChildrenToValidationErrors

Protected mapChildrenToValidationErrors(error, parentPath?): ValidationError[]

Parameters

NameType
errorValidationError
parentPath?string

Returns

ValidationError[]

Inherited from

ValidationPipe.mapChildrenToValidationErrors

Defined in

node_modules/@nestjs/common/pipes/validation.pipe.d.ts:49


prependConstraintsWithParentProp

Protected prependConstraintsWithParentProp(parentPath, error): ValidationError

Parameters

NameType
parentPathstring
errorValidationError

Returns

ValidationError

Inherited from

ValidationPipe.prependConstraintsWithParentProp

Defined in

node_modules/@nestjs/common/pipes/validation.pipe.d.ts:50


stripProtoKeys

Protected stripProtoKeys(value): void

Parameters

NameType
valueany

Returns

void

Inherited from

ValidationPipe.stripProtoKeys

Defined in

node_modules/@nestjs/common/pipes/validation.pipe.d.ts:45


toEmptyIfNil

Protected toEmptyIfNil<T, R>(value): {} | R

Type parameters

NameType
Tany
Rany

Parameters

NameType
valueT

Returns

{} | R

Inherited from

ValidationPipe.toEmptyIfNil

Defined in

node_modules/@nestjs/common/pipes/validation.pipe.d.ts:44


toValidate

Protected toValidate(metadata): boolean

Parameters

NameType
metadataArgumentMetadata

Returns

boolean

Overrides

ValidationPipe.toValidate

Defined in

src/pipes/i18n-validation.pipe.ts:22


transform

transform(value, metadata): Promise<any>

Parameters

NameType
valueany
metadataArgumentMetadata

Returns

Promise<any>

Inherited from

ValidationPipe.transform

Defined in

node_modules/@nestjs/common/pipes/validation.pipe.d.ts:40


transformPrimitive

Protected transformPrimitive(value, metadata): any

Parameters

NameType
valueany
metadataArgumentMetadata

Returns

any

Inherited from

ValidationPipe.transformPrimitive

Defined in

node_modules/@nestjs/common/pipes/validation.pipe.d.ts:43


validate

Protected validate(object, validatorOptions?): ValidationError[] | Promise<ValidationError[]>

Parameters

NameType
objectobject
validatorOptions?ValidatorOptions

Returns

ValidationError[] | Promise<ValidationError[]>

Inherited from

ValidationPipe.validate

Defined in

node_modules/@nestjs/common/pipes/validation.pipe.d.ts:47