Table of Contents

Namespace Trellis.FluentValidation

Classes

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.

JsonPointerNormalizer

Converts FluentValidation member-chain property names (e.g., Address.PostCode, Items[0].Sku) into camelCase RFC 6901 JSON Pointers (e.g., /address/postCode, /items/0/sku) so they can be carried through Trellis InputPointer values. Each name segment's first character is lower-cased (via ToCamelCase(string?)) so FluentValidation error keys match the camelCase JSON wire and the rest of Trellis's validation field names; indexer segments are left unchanged.

ValidationArgsOptions

Widens the per-validator allowlist that ValidationArgsProjection applies, so an application can publish a machine-readable operand Trellis withholds by default.

ValidationArgsProjection

Projects a FluentValidation.Results.ValidationFailure's placeholder values onto the structured Args a client can use to render its own localized message.

ValidationCodeProjection

Maps a FluentValidation ErrorCode onto the Trellis reason-code vocabulary.