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
I'm not sure if this is a valibot problem, but it could be.
Valibot version 0.27
I make a record of the scheme like this:
constdeviceSchema=object({imsi: imsi(),imei: optional(string([minLength(1,'Необходимо ввести IMEI'),minLength(15,'IMEI должен быть не менее 15 цифр'),])),description: optional(string()),})
Next, I use the scheme in conjunction with veevalidate:
I'm not sure if this is a valibot problem, but it could be.
Valibot version 0.27
I make a record of the scheme like this:
Next, I use the scheme in conjunction with veevalidate:
And I get that
meta
does not have the correct flag if the imei does not meet the length requirements, despite the fact that the field is optional.I assume that the scheme in which the optional field has length requirements (or others) does not work correctly.
But this is just a guess.
The text was updated successfully, but these errors were encountered: