SharpGrip / FluentValidation.AutoValidation

SharpGrip FluentValidation AutoValidation is an extension of the FluentValidation library enabling automatic asynchronous validation in MVC controllers and minimal APIs (endpoints).
https://sharpgrip.net
MIT License
103 stars 7 forks source link

Add option to include the `ErrorCode` instead of the `ErrorMessage` in the `ModelState` #27

Closed georgegkonis closed 9 months ago

georgegkonis commented 10 months ago

Basically, what the tile says, it could be useful to be able to configure what's added to the ModelState.

mvdgun commented 10 months ago

@georgegkonis I think #12 would help with that. Unfortunately it is a breaking change that cannot be done in v1 and is planned for v2.