Skip to content

v10.0.2

Choose a tag to compare

@maxholman maxholman released this 04 May 13:03

Fixed

  • Generated Hono middleware validators now reference the coerced sibling schemas instead of the exact ones, so HTTP query, path, and header values (which always arrive as strings) validate correctly. Previously a request like ?limit=20 would fail because "20" was not a v.number(). Body validators are unaffected in practice — JSON-typed numbers still pass through the coerced union. Use exactOnly to opt out.