IValidationRule

Interface used to implement custom validation rules.

Description

The IValidationRule interface allows you to implement custom validation rules.

Instance methods

Validate

Validates a given value against this rule.

public void Validate(string path, Schema schema, object value, List<ValidationResult> results)

  • path: string - path to the value in dot notation.
  • schema: Schema - schema this rule is called from
  • value: object - value to be validated.
  • results: List<ValidationResult> - list with validation results.