vuelidate / vuelidate

Simple, lightweight model-based validation for Vue.js
https://vuelidate-next.netlify.app/
MIT License
6.9k stars 497 forks source link

sameAs implies required #351

Open nicolas-guichard opened 6 years ago

nicolas-guichard commented 6 years ago

Issue https://github.com/monterail/vuelidate/issues/66 stated otherwise, but I don't understand why sameAs should imply required, it is known bad practice for any other validator.

Moreover, it is much easier to combine required with sameAs than to write sameAsButNotRequired. I wanted to perform a simple signin/signup form when I stumbled upon this.

This exemple would have to be changed accordingly.

shentao commented 5 years ago

Is this still an issue?