Table of Contents

Namespace Trellis.FluentValidation

Classes

FluentValidationMessageValidatorAdapter<TMessage>

Adapts FluentValidation FluentValidation.IValidator<T> implementations into the Trellis Mediator validation stage. Resolves every IValidator<TMessage> registered in DI, runs them, and returns an aggregated Error.UnprocessableContent failure when any validator reports errors.

FluentValidationResultExtensions

Provides extension methods to integrate FluentValidation with Railway Oriented Programming Result types. Enables seamless conversion of FluentValidation results to Result<T> for functional error handling.

FluentValidationServiceCollectionExtensions

Extension methods for plugging FluentValidation into the Trellis Mediator validation stage.