feat(litestar): support Litestar v3 compatibility and DI changes

未关闭
#926 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@cofin 已经在做这个了。

开始于 2026年11月18日。

评估

这个 Issue 还没有评估数据。

描述

enhancement

Track compatibility with Litestar v3 (3.0.0b0, litestar-org/litestar#5170), including the new litestar.di module (litestar-org/litestar#5227) and OpenAPI schema generation refactor (litestar-org/litestar#5228).

Note: Pending the Litestar v3 release; additional updates may be required as upstream v3 changes settle.

  • Register scoped Provider bindings in SQLSpecPlugin and create_filter_dependencies on Litestar v3 instead of deprecated Provide wrappers.
  • Support optional TypeDependency bindings for configured pools, connections, and driver sessions alongside existing string keys.
  • Verify dynamic session and filter provider signatures (QueryParameter, explicit = None defaults) and signature_namespace entries against litestar.di and v3 request parameter validation.
  • Migrate CorrelationMiddleware registration from DefineMiddleware to ASGIMiddleware, and replace route_handler.resolve_exception_handlers() with route_handler.exception_handlers.
  • Update _OffsetPaginationSchemaPlugin for the Litestar v3 OpenAPI schema plugin changes (litestar-org/litestar#5228).
  • Replace removed litestar.params.Dependency usage in tests, update Response.to_asgi_response and unhandled-exception test assertions for v3 defaults, and declare litestar[cli,testing] in dev/test dependency groups.
主要语言
Python
星标
110
派生
11
平均合并
19 小时 9 分钟
30 天内合并 PR
37

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

litestar-org/sqlspec 的其他 Issue

查看 litestar-org/sqlspec 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。