Open amit548 opened 1 week ago
And also I want to clarify that I cannot use c.req.valid("param") so I did use c.req.param("vendor")
And I also tried the hook way, but showing this type of error
Well I created a normal middleware and it works, but looking for some solution for zValidator
This is a known issue. Related to https://github.com/honojs/hono/issues/3202
I am trying to add prop value from middleware but when I use zValidator middleware to validate the param I found c.get & c.set showing some errors, I do the same without zValidator and I found c.get & c.set works well, I did not understand what wrong.
The defined types are missing after using zValidator for middleware.