I am working on a very LEGACY MVC App using C# which is built from 2009. They dont have any client side validation at all. In other words, they dont use Validation mechanism provided by MVC framework as the following link
They use service, interface etc... to do validation. Not using DataAnnotation.As a result, they dont have unit tests for Model Validator. All validation rules will be tested manually through server side only or the unit tests have strong dependency to Resource.resx or other services which I dont think they are unit tests.
Therefore, I have added a client side validation and serverside validation by using DataAnotation.
Unfortunately, my PR is declined because they said that they dont want to use or add Jquery to the current applicaton. The reason is that:
"they want to build portable micro-frontends pointing at APIs rather than all encompassing large applications the current app. because of that JQuery Validate is at the complete opposite end of the scale from zero compromise. It can be done by HTML5 and plenty of other client side only JS libraries there are plenty of better compromises. The other end of the scale (our ideal) is the validation happens in an encapsulated web component that uses Angular Forms." (An answer from a Front end developer)
The problem is that we have not the plan to replace that legacy app yet and I dont see the reason why I cannot use Validation mechanism from Microsoft to do both client side and server side validation. My thought is that it is better to do validation in correct way, rather than let it be bad and will be replaced by web-component soon. Based on the source code, I am not sure they are able to apply proper validation way in new technology because with MVC app, I think they did not apply correctly or I dont think they understand the framework.
Any ideas why I should not use MS's validation on a legacy app?