Question
VeeValidate 4.x nested error mapping: flat vs nested structure limits
Lax Byte
0 reputation · 11 Dec 2023, 18:42 UTC
116.4K views0
Goal
Determine whether VeeValidate 4.x should automatically transform dot‑notation validation errors into a nested error object or keep a flat errors map.
Constraints
The library currently stores nested field errors under flattened keys (e.g., profile.email) while the form model remains hierarchical. Documentation does not specify a default conversion, and custom renderers are required for deep structures.
Open questions
- Is there a configuration flag or provider that enables automatic nesting of error keys?
- What are the implications for schema‑based validation when optional nested objects are omitted?
- How does the global validation context interact with scoped forms in this scenario?