Skip to content

fix: repair Litestar NumPy serializer integration#450

Merged
cofin merged 2 commits into
mainfrom
feat/serializer-aa
May 13, 2026
Merged

fix: repair Litestar NumPy serializer integration#450
cofin merged 2 commits into
mainfrom
feat/serializer-aa

Conversation

@cofin

@cofin cofin commented May 13, 2026

Copy link
Copy Markdown
Member

Summary

  • Repair Litestar typed NumPy request decoding by routing np.ndarray annotations through the SQLSpecPlugin signature namespace and a Litestar-safe type decoder.
  • Keep the serializer parity scope to the accepted surface: DEFAULT_TYPE_ENCODERS plus Litestar SQLSpecPlugin wiring, without provider/response re-exports.
  • Reorganize sqlspec/extensions/litestar/plugin.py so public plugin/middleware code comes first and private helpers sit at the bottom.

@cofin
cofin marked this pull request as ready for review May 13, 2026 17:31
@cofin
cofin merged commit cc543a4 into main May 13, 2026
12 checks passed
@cofin
cofin deleted the feat/serializer-aa branch May 13, 2026 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant