I use Vuelidate in my project, which is great for validations inside components. However since I’ll be working with the same data in multiple places, even outside of Vue.js components, I need a way to reuse the validation mechanism.
Basically, I am looking for a method like
validate() from Vuelidate library to which I’d pass my
validations object and some sort-of value object, where I’d put all the values (instead taking them from data or computed properties in components).
Has anyone used Vuelidate like that? Is it possible?