riganti / dotvvm

Open source MVVM framework for Web Apps
https://www.dotvvm.com
Apache License 2.0
743 stars 97 forks source link

Validation extensibility #276

Open djanosik opened 7 years ago

djanosik commented 7 years ago

The validation framework in DotVMM is not extensible. We can't plug-in custom validation frameworks, client-side validators, error messages, etc. We should change validators to make that possible:

Similar design should solve most of our issues with validation extensibility. But I am still not sure how to handle localization. Client-side rules are currently cached somewhere in DefaultViewModelSerializer so we can't change error messages at runtime. @exyi what do you think?

Do you have something to add?

exyi commented 7 years ago

cc @martindybal - you was experimenting with few improvements few weeks ago, anything to add?