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 suggest supporting passing a function as the 2nd parameter of zValidator with a signature of somehting like (c: Context) => zValidatorType. Like this:
I found the need to access the context object (
c
) in defining myzValidator
.Like this:
I suggest supporting passing a function as the 2nd parameter of
zValidator
with a signature of somehting like(c: Context) => zValidatorType
. Like this:// ... .post( "/login/otp", zValidator("json" + (c) => z.object({ otp: z.string().length(c.env.otpLength), }), ), // ...
The text was updated successfully, but these errors were encountered: