Options
Menu

This class represents custom validator. It used to create shared validation rules.

Index

Properties

Methods

Properties

Error

Error: IError

Return validation failures.

Methods

Validate

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

    Parameters

    • context: any

    Returns IValidationFailure

ValidateAsync

  • ValidateAsync(context: any): Q.Promise<Validation.IValidationFailure>
  • It executes sync and async validation rules using a validation context and returns a collection of Validation Failures asynchronoulsy.

    Parameters

    • context: any

    Returns Q.Promise<Validation.IValidationFailure>

Generated using TypeDoc