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

オープン
#926 コメント 0 件 リアクション 0 件 担当者 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分
マージ済み PR(30日)
37

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

litestar-org/sqlspec のほかの issue

litestar-org/sqlspec の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。