-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Combine multiple ValidationResults #2125
Comments
I'm not keen on a |
Sure @JeremySkinner ! It would help a lot. |
Added the new constructor in 1f9102d. This will go in the 11.7 release. I'm not keen on including the extension methods in the library, I don't feel they're necessary, but you can continue to use them within your own project. |
@JeremySkinner thanks for the improvement (: |
11.7.0 is now released with this change |
@JeremySkinner What about the |
@cremor Yes you’re right, I missed that. I’ll try and push out a further update to resolve that when I get some time, or if you’d like to submit a PR that’d be very welcome |
I'm not really sure what the correct implementation would be. Maybe this? RuleSetsExecuted = otherResults.Where(x => x.RuleSetsExecuted != null).SelectMany(x => x.RuleSetsExecuted).Distinct().ToArray(); |
Yep I think that should work |
I've pushed out 11.7.1 with this fix |
Is your feature request related to a problem? Please describe.
No, just a useful method that I could not find in the lib.
Is there any "native" way to combine/join multiples ValidationResult's?
Describe the solution you'd like
It is very useful to combine/join mutiples ValidationResults into a new ValidationResults, for example..
Describe alternatives you've considered
In my current system I've added the following extension methods.
If there are interest to make them part of the library (in case of no current native solution) I can submit a PR.
Additional Context
No response
The text was updated successfully, but these errors were encountered: