mirror of
https://github.com/kennethreitz/responder.git
synced 2026-07-21 18:39:29 +00:00
3d92e38333
The 6.5.2 validate= codegen emitted a shared JS/TS validation helper whose arrow-function params (value/schema/path/expected/variant) and the SCHEMAS lookup were untyped, so the generated TypeScript client failed `tsc` / `deno check` with 8 implicit-any errors. Annotate those spots for the typed (TS) path; JavaScript output is unchanged. Adds regression tests: a string assertion that the TS validators are annotated, and a `deno check` smoke test (skipped when deno isn't installed) that would have caught this. JS/Ruby still syntax-check; PHP unverified locally (no php). 596 tests pass; ruff + mypy clean. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>