You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Opening DefaultBodyModelValidator for changes via inheritance and overriding of its private (now protected virtual) method.
As described in the following issue for Fluent Validation Web API integration package FluentValidation/FluentValidation#178 (comment), FV makes small changes in DFMV but has to copy-paste the whole class as-is because it's barely extendable having all method as private.
This pull request changes them to protected virtual with minimal related changes (few nested private methods should be now protected, one internal interface - public).
Please review!
MPSIT Engineering extensively uses ASP.NET Web API for current and new projects, and relies on Fluent Validation to validate input. But unfortunately we're unable to change some of the behaviors without copy-pasting huge pieces of code, what would be perfectly avoidable with the proposed change.
Thanks,
Alex
The text was updated successfully, but these errors were encountered:
Original PR: https://aspnetwebstack.codeplex.com/SourceControl/network/forks/abatishchev/modelvalidation2/contribution/8644
The text was updated successfully, but these errors were encountered: