-
Notifications
You must be signed in to change notification settings - Fork 126
Expose ValidationErrors as IEnumerable to Prevent Side Effects #169
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
Conversation
…rdalis/Result into errors-as-readonly-collections
|
Should we have more options for including correlation ids? And if so, rather than having separate methods for all of them, would it make sense to bake it into a single parameter object, like: public record ErrorList(IEnumerable<string> ErrorMessages, string? CorrelationId);? Then the factory methods would just take in |
I agree we should try to pass CorrelationId whenever we can, I'll update the methods in a separate PR. |
Sample unit test showing behavior