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.
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
.