validator from hono/validator runs before your handler. validator('json', (value, c) => { ... }) receives the parsed body as unknown; return a typed object to accept it, or return a response such as c.json({ error: 'qty' }, 400) to reject the request. The handler then reads the accepted value with c.req.valid('json'), already typed.
Hono parses the body itself. A body that is not JSON at all never reaches your function: Hono answers 400 with the text Malformed JSON in request body. Your function decides everything else: missing fields, wrong types, numbers out of range, and unknown fields you choose to refuse.
Because the value is unknown, strict TypeScript makes you check it before you use it. That check is the contract. A schema library can write it for you, but the rule it enforces is the same one you write here by hand.
The validator returns either a response or the accepted value; the handler only sees accepted values.