Welcome

Waystone.Monads.FluentValidation is a library that seamlessly integrates the expressive validation capabilities of FluentValidation with the robust error handling patterns of Waystone.Monads. This library is designed to streamline how you validate objects and manage validation results in a clear, functional, and type-safe way.

What's Included?

It is recommended to familiarise yourself with Waystone.Monads before continuing.

This library provides a set of extensions that allow you to execute a validator on any value. These extension methods wrap the result of the validator in a Result<T, E>, making it effortless to handle both Ok and Err cases in your application.

Who should use this?

You should use this library if:

  • You want to use both FluentValidation and Waystone.Monads in your application

  • You want to plug in validation into your monadic workflows without having to manually plumb it all together

  • You want to kickstart the monadic chain by executing a validator

  • You want to keep validation and error-handling logic clear and concise

Get Started

Explore the documentation to learn about the inner workings of this library.

Last updated

Was this helpful?