Closed shainegordon closed 7 months ago
Thanks Shaine, this makes good sense, we'll certainly look into adding this option. I'll update this issue as we have more feedback.
Hi @shainegordon
We have put out a pre-release with this feature. Intent.Application.MediatR.FluentValidation v 4.4.4-pre.2
Give it a try and let me know if you need any additional support around this issue.
Hi @shainegordon
We have put out a pre-release with this feature. Intent.Application.MediatR.FluentValidation v 4.4.4-pre.2
Give it a try and let me know if you need any additional support around this issue.
Awesome, works perfectly
What problem are you trying to solve?
Imagine the following validation has been setup
In this case, we do not want to run the
Must
code, if the email is not a valid email. This is just an unnecessary operation.FluentValidation supports this feature, using the
.Cascade
method.Describe the solution you'd like
Have an optional setting in the Validations properties of service designer, where a user can tick this option, and if it is enabled, it will add the
.Cascade(CascadeMode.Stop)
call