Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any way to read validation state of each rule? #4856

Closed
dariasamo opened this issue Sep 9, 2024 · 1 comment
Closed

Is there any way to read validation state of each rule? #4856

dariasamo opened this issue Sep 9, 2024 · 1 comment

Comments

@dariasamo
Copy link

I am migrating from vuelidate to vee-validate (with yup) and I run into an issue when I need to read a state of each rule in order to display password validation state in the UI and show which rules have been satisfied and which weren't. I was easily able to get this information in vuelidate as reactive properties on the field object.

<PasswordCriteria
  :valid="v$.password[key].$response''
  :message="v$.password[key].$message"
 />

but there seems to be no way to get this information with vee-validate. I can get a current list of errors as errorBag, but there is no exposed information on the state of each rule. Is there any workaround?

@logaretm
Copy link
Owner

Sadly this is not supported because we have a few validation providers so it would be difficult to normalize this feature across all of them.

@logaretm logaretm closed this as not planned Won't fix, can't repro, duplicate, stale Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants