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

Error transformations

Open zumm opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe. Main problem which this feature aims to solve is yup localization. Doc of vee-validate sends users to yup localization guide, but that guide is "just return keys/objects and feed them to i18n when needed". Doing so across all form components while maintaining reactivity may be tricky and required boilerplate code.

Describe the solution you'd like Would be very nice to pass error transformer to useForm (or to toTypedSchema) and handle problem in single place. If vee-validate can call this transformer inside watchEffect then it also solves reactivity issue.

Describe alternatives you've considered It could be achieved by manually resetting form errors when they changed, but this way feels clunky.

zumm avatar Jul 16 '24 19:07 zumm