Class ValidatorComponent
Component for schema-based message validation.
URI format: validator:path/to/schema.json or validator:path/to/schema.xsd.
The schema format is auto-detected from the file extension (.xsd → XSD, otherwise JSON Schema).
Parameters:
format — Force format: json or xml (overrides auto-detection).throwOnFailure — Whether to throw on failure (true by default).targetNamespace — Target namespace for XSD schemas (optional).schemaRoot — For XSD: the directory imports and includes stay under, relative to the schema's directory (optional).
[EndpointRole(EndpointRole.Producer, Hint = "Use .To(\"validator:...\").")]
public sealed class ValidatorComponent : ComponentBase, IComponent, IAsyncDisposable
Inheritance
Implements
Inherited Members
Properties
Scheme
The URI scheme this component handles (e.g., "kafka", "rabbitmq").
public override string Scheme { get; }
Methods
CreateEndpoint(EndpointUri)
Creates an endpoint from a parsed URI.
public override IEndpoint CreateEndpoint(EndpointUri uri)