Documentation: Examples using dict[str, UploadFile]
don't work as advertised
#2940
Labels
Documentation 📚
This is related to documentation
Description
A msgpsec validation error is raised when annotating as
data: dict[str, UploadFile]
. This is because what we actually give msgspec is list ofUploadFiles
, but they have to converted into a dictionary before that. Also, I wasn't able to find any tests for these (maybe I missed them) which may mean this has never worked :DURL to code causing the issue
No response
MCVE
Steps to reproduce
Screenshots
No response
Logs
Litestar Version
Main
Platform
Note
While we are open for sponsoring on GitHub Sponsors and
OpenCollective, we also utilize Polar.sh to engage in pledge-based sponsorship.
Check out all issues funded or available for funding on our Polar.sh dashboard
The text was updated successfully, but these errors were encountered: