Interface ValidationOptionsWrapped

interface ValidationOptionsWrapped {
    isWrapValidateByPropertyDecorator?: boolean;
    propertyDecoratorProducingFunction?: TPropertyDecoratorBasedOnValidateBy;
    each?: boolean;
    message?: string | ((validationArguments: ValidationArguments) => string);
    groups?: string[];
    always?: boolean;
    context?: any;
}

Hierarchy

  • ValidationOptions
    • ValidationOptionsWrapped

Properties

isWrapValidateByPropertyDecorator?: boolean
propertyDecoratorProducingFunction?: TPropertyDecoratorBasedOnValidateBy
each?: boolean

Specifies if validated value is an array and each of its items must be validated.

message?: string | ((validationArguments: ValidationArguments) => string)

Error message to be used on validation fail. Message can be either string or a function that returns a string.

groups?: string[]

Validation groups used for this validation.

always?: boolean

Indicates if validation must be performed always, no matter of validation groups used.

context?: any