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
For the jsonValidator, the input type is inferred correctly: id is required
For the paramValidator, however, the id field in the input type is optional for an unknown reason, while it should be marked as required since the schema says it is not optional and not nullable:
This example is not working as expected, i.e. accepts undefined as a param:
Reproduction:
param
, the other one forjson
:For the

jsonValidator
, theinput
type is inferred correctly:id
is requiredFor the

paramValidator
, however, theid
field in theinput
type is optional for an unknown reason, while it should be marked as required since the schema says it is not optional and not nullable:This example is not working as expected, i.e. accepts

undefined
as a param:Suspected commit: honojs/middleware@4875e1c
Link to TS Playground
The text was updated successfully, but these errors were encountered: