Validation & transactions


#1

Transactions require success/fail, but that’s not what validations return out of the box, they return success? not a monad, is that right?

If that’s true, is it intentional, or something that’s on your radar to change… or something else? :slight_smile:


#2

There’s a method on Dry::Validation::Result to return itself as an Either monad. Does that help?


#3

That’s exactly what I was after, I hadn’t got as far as the extensions. Thank you!