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.
validate(path: str, schema: Schema, value: Any, results: List[ValidationResult])
- path: str - a dot notation path to the value.
- schema: Schema - a schema this rule is called from
- value: Any - a value to be validated.
- results: List[ValidationResult] - a list with validation results to add new results.