Class DataAnnotationsValidator

Assembly: redb.Route.Validation.Adapters.dll

Bridges System.ComponentModel.DataAnnotations to redb.Route's .
Runs
against the exchange body and aggregates errors with their member names.

public sealed class DataAnnotationsValidator : IMessageValidator

Inheritance

Object→DataAnnotationsValidator

Implements

Methods

Validate(IExchange)

Validates the exchange and returns a result indicating success or failure with error details.

public ValidationResult Validate(IExchange exchange)

Constructors

DataAnnotationsValidator(ValidationSeverity, IServiceProvider?)

Creates a DataAnnotations-backed message validator.