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?
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?
There’s a method on Dry::Validation::Result to return itself as an Either monad. Does that help?
That’s exactly what I was after, I hadn’t got as far as the extensions. Thank you!