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
The Zod Validator uses z.input to infer a query using the request type. With it, the value with z.coerce will have undefined and optional:
This means the value defined z.coerce can be optional or undefined. On the other hand, if you specify the value with z.number(), it can not allow undefined.
As shown in the screenshots above, the rpc client query paramters should have the correct inferred number type.
package version:
"hono": "^4.5.4"
"@hono/zod-validator": "^0.2.2"
The text was updated successfully, but these errors were encountered: