vee-validate icon indicating copy to clipboard operation
vee-validate copied to clipboard

Define key for array not work

Open lucnt1100 opened this issue 1 year ago • 0 comments

What happened?

I want validate each element of the array like this const schema = { array.0.name: 'required' } but the form got errors parse name: 'message error'

I read the docs guide to use yup library but my member did not use this how can write a schema for an array like for an object with rules string

Reproduction steps

...

Version

Vue.js 3.x and vee-validate 4.x

What browsers are you seeing the problem on?

  • [ ] Firefox
  • [ ] Chrome
  • [ ] Safari
  • [ ] Microsoft Edge

Relevant log output

No response

Demo link

no, code

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

lucnt1100 avatar Jul 19 '24 08:07 lucnt1100