DamianEdwards / MiniValidation

A minimalist validation library for .NET built atop the existing features in `System.ComponentModel.DataAnnotations` namespace
MIT License
337 stars 27 forks source link

Change type of the out parameter in MiniValidator.Validate() to be IReadOnlyDictionary #33

Closed DamianEdwards closed 1 year ago

DamianEdwards commented 2 years ago

Really no need for it to be an IDictionary<string, string[]> so should just make it IReadOnlyDictionary<string, string[]> instead.

DamianEdwards commented 1 year ago

This is more painful that initially thought as methods in the framework like Results.ValidationProblem() accept an IDictionary<sring, string[]>