logaretm / vee-validate

✅ Painless Vue forms
https://vee-validate.logaretm.com/v4
MIT License
10.79k stars 1.26k forks source link

Define key for array not work #4820

Closed lucnt1100 closed 3 days ago

lucnt1100 commented 3 months ago

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

1. 2. 3. ...

Version

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

What browsers are you seeing the problem on?

Relevant log output

No response

Demo link

no, code

Code of Conduct

logaretm commented 3 days ago

Can you please provider a reproduction?