mirror of
https://github.com/kennethreitz/responder.git
synced 2026-07-21 18:39:29 +00:00
a151b55637
- Annotated[] marker form: q: Annotated[int, Query(ge=1)] (PEP 593) in addition to q: int = Query(...); detected locally in marker_params, so no change to other hint consumers. - Generic response_model: list[Model]/tuple/union validated+serialized via TypeAdapter and documented as array items/oneOf with hoisted component refs; explicit-only (return-annotation generics stay no-ops). Fixes the bogus "list" schema. api.py no longer auto-registers a name for generic models. - Route/operation metadata: tags/summary/description/operation_id/deprecated on @api.route + verb decorators (docstring YAML still overrides). - API(openapi_servers=[...]) populates the OpenAPI servers list. - Docs updated; the outdated "constraints are inert" / "single model only" notes corrected. Backwards-compatible. 502 tests pass; ruff + mypy clean. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>