Interface IValidationRuleExecutor
Evaluates a single inline validation rule against a value.
Implementations return either a bool (false meaning the rule failed) or a string (non-empty meaning the rule failed, with that string as the failure message).
Namespace: Confluent.SchemaRegistry
Assembly: Confluent.SchemaRegistry.dll
Syntax
public interface IValidationRuleExecutor
Methods
Execute(ValidationRule, object, object)
Evaluates the rule against the given value.
Declaration
Task<object> Execute(ValidationRule rule, object schema, object message)
Parameters
| Type | Name | Description |
|---|---|---|
| ValidationRule | rule | the rule to evaluate |
| object | schema | a schema hint describing the value |
| object | message | the value to validate |
Returns
| Type | Description |
|---|---|
| Task<object> |