-
-
Notifications
You must be signed in to change notification settings - Fork 511
Open
Labels
Bug 🐛This is something that is not working as expectedThis is something that is not working as expected
Description
Description
Currently, despite Litestar being meant to have first-class support for msgspec:
- Litestar's documentation does not document any way of customizing the titles, descriptions, examples, and other metadata of
msgspecstructs. msgspec.Metaannotations applied tomsgspecstructs are largely ignored by Litestar.msgspec.Metaannotations applied toClassVarfields such as tag fields are ignored when generated OpenAPI specs.- Litestar does not emit the required discriminator annotation for custom
msgspectag fields annotated withClassVars.
It is proving very difficult to build a production API with litestar and msgspec given the above issues.
URL to code causing the issue
No response
MCVE
Steps to reproduce
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Screenshots
No response
Logs
Litestar Version
2.19.0
Platform
- Linux
- Mac
- Windows
- Other (Please specify in the description above)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Bug 🐛This is something that is not working as expectedThis is something that is not working as expected