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 - dot notation path to the value.
- schema: Schema - schema this rule is called from
- value: Object - value to be validated.
- results: List<ValidationResult> - list with validation results.