zod-validation-error
Advanced tools
Changelog
2.0.0
b199ca1: Update toValidationError()
to return only ValidationError
instances
This change only affects users of toValidationError()
. The method was previously returning Error | ValidationError
and now returns only ValidationError
.
Changelog
1.5.0
Changelog
1.3.0
Changelog
1.2.1
Changelog
1.2.0
f3aa0b2: Better handling for single-item paths
Given a validation error at array position 1 the error output would read Error X at "[1]"
. After this change, the error output reads Error X at index 1
.
Likewise, previously a validation error at property "_" would yield Error X at "["_"]"
. Now it yieldsError X at "\*"
which reads much better.