ardalis / Result

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

Add identifier & error message constructor to ValidationError #209

Closed gordysc closed 19 hours ago

gordysc commented 1 month ago

Related to https://github.com/ardalis/Result/issues/208

I've opted not to refactor other areas of the code base this could be applied to as both forms are valid.

github-actions[bot] commented 20 hours ago

Code Coverage

Package Line Rate Branch Rate Complexity Health
Ardalis.Result.Sample.Core 36% 39% 66
Ardalis.Result.SampleWeb 67% 50% 44
Ardalis.Result.AspNetCore 49% 52% 168
Ardalis.Result 9% 0% 265
Ardalis.Result.FluentValidation 0% 0% 6
Summary 35% (413 / 1166) 25% (91 / 362) 549