ardalis / Result

A result abstraction that can be mapped to HTTP response codes if needed.
MIT License
866 stars 107 forks source link

ValidationErrors #23

Closed pauldbentley closed 4 years ago

pauldbentley commented 4 years ago

Could IResult.ValidationErrors be Dictionary<string, string[]> to allow multiple errors for the same key?

ardalis commented 4 years ago

Probably a good change. Want to do a PR?

SimonGeering commented 4 years ago

Would be a good idea to add this as an overload which internally handles backwards compatibility to the existing Dictionary<string, string>.