- Added a new method
addError which appends a new error item into the validation object. This method is available on the useValidation composable. closes (#3)
addError(validatedFormKey, {
errorKey: 'my-error-id',
message: 'It failed because I said so'
}
- Fixed an issue where resetting validation object would incorrectly assign properties to the wrong path. Closes (#1), Closes (#2)
- Improved typing on errors object. Now correctly hints at keys provided in the validated form and other methods
- Improved speed of
autoclear to only reset after validation was performed