mirror of
https://github.com/kennethreitz/responder.git
synced 2026-07-21 18:39:29 +00:00
fde93a7658
- Typed path params on plain segments: /users/{id} with id: int (or UUID, …)
now validates/coerces the path value and 422s on bad input (works for HTTP
views, CBV methods, and WebSocket handlers).
- Path-param OpenAPI reflects a bare handler annotation, Path(...) alias/
constraints/description, and the {id:uuid} convertor (string/format: uuid).
Parameters are emitted per-operation (incl. per-CBV-method).
- If-Range support in resp.file()/stream_file()/download(): a stale resumable
request falls back to the full body instead of a wrong partial.
- Type-only fixes for the new code: _if_range_matches None-guard; parameters
annotation in the path-adapter builder.
Backwards-compatible. 580 tests pass; ruff + mypy clean.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>