You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When validation of code fails due to specifying an empty string or a string with length > 2 I correctly get a validation error. However, the error message I get is No valid union member found. Valid: string | null.
Instead, I would expect to receive either Min length is 1 or Max length is 2.
The text was updated successfully, but these errors were encountered:
Hi,
First I just want to say that I really appreciate all the work that's being put into deepkit, I'm really enjoying it.
I recently came across an issue (I'm using
deepkit/type 1.0.1-alpha.151
):When validation of
code
fails due to specifying an empty string or a string with length > 2 I correctly get a validation error. However, the error message I get isNo valid union member found. Valid: string | null
.Instead, I would expect to receive either
Min length is 1
orMax length is 2
.The text was updated successfully, but these errors were encountered: