Elysia is overriding the summary
property with my custom validation message
#1041
Labels
bug
Something isn't working
summary
property with my custom validation message
#1041
What version of Elysia is running?
1.2.0
What platform is your computer?
macOS
What steps can reproduce the bug?
What is the expected behavior?
I don't think
summary
makes sense here really anyway since it's contextually incorrect, but this is the default behaviour for an email. Is this anElysia
property and not part ofTypeBox
?Regardless, why is elysia adding it's own validation error data anyway? Wouldn't it be best to keep things simple and utilize TypeBox to it's full potential and/or let users customize the error themselves?
The code in the link within "Additional information" below feels completely redundant to me.
Additional information
Here is the code overriding the Sinclair TypeBox custom error message behaviour:
elysia/src/error.ts
Line 142 in 1ca0ef1
The text was updated successfully, but these errors were encountered: