logaretm / vee-validate

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

Mix of Nested objects and Avoiding nesting #4762

Open akaravashkin opened 5 months ago

akaravashkin commented 5 months ago

Hello,

according to docs https://vee-validate.logaretm.com/v4/guide/composition-api/nested-objects-and-arrays/ we can use nested objects OR avoid nesting for dot notation. But what if use it both?

Example payload:

{
  nested: {
    field: "value 1",
    metadata: {
      dotted.field: "value 2"  
    }
  }
} 

Is it could be possible to specify path like nested.metadata.[dotted.field]?

logaretm commented 5 months ago

Not at the moment, might be worth adding but it would be considered a breaking change so I will reserve this for v5.