Options
Menu

Interface IAbstractValidationRule

It represents concrete validation rule for type of .

Index

Properties

Children

Children: Object

Return child validators.

Children index signature

ForList

ForList: boolean

Return true if this validation rule is intended for list of items, otherwise true.

Rules

Rules: Object

Return property validation rules.

Rules index signature

ValidationResult

ValidationResult: IValidationResult

Return validation results.

Validators

Validators: Object

Return shared validation rules.

Validators index signature

  • Parameters

    • name: string

    Returns IValidator

Methods

Validate

  • It executes sync validation rules using a validation context and returns a collection of Validation Failures.

    Parameters

    • context: T in Validation.IAbstractValidationRule<T>

    Returns IValidationResult

ValidateAll

  • ValidateAll(context: T in Validation.IAbstractValidationRule<T>): Q.Promise<Validation.IValidationResult>
  • It executes sync and async validation rules using a validation context and returns a collection of Validation Failures asynchronoulsy.

    Parameters

    • context: T in Validation.IAbstractValidationRule<T>

    Returns Q.Promise<Validation.IValidationResult>

ValidateAsync

  • ValidateAsync(context: T in Validation.IAbstractValidationRule<T>): Q.Promise<Validation.IValidationResult>
  • It executes async validation rules using a validation context and returns a collection of Validation Failures asynchronoulsy.

    Parameters

    • context: T in Validation.IAbstractValidationRule<T>

    Returns Q.Promise<Validation.IValidationResult>

ValidateProperty

  • ValidateProperty(context: T in Validation.IAbstractValidationRule<T>, propName: string)
  • It executes sync and async validation rules for the passed property using a validation context.

    Parameters

    • context: T in Validation.IAbstractValidationRule<T>
    • propName: string

Generated using TypeDoc