Bug: Litestar: "Unexpected default value" exception when using default=null()
from sqlalchemy
#238
Labels
wontfix
This will not be worked on
Description
There is a
null()
function in sqlalchemy which is useful on JSON objects to disambiguate sqlnull
vs jsonnull
as a value. The advanced alchemy package appears to not have support for this however. Running the code below results in an unexpected exception:Examining the sqla_default object further reveals that the default _detect_defaults retrieves:
I'm not familiar enough with this ecosystem to be confident in any fixes, I'm not sure if just detecting the above and setting the
default=None
would work though?URL to code causing the issue
No response
MCVE
Steps to reproduce
Screenshots
"In the format of:
![SCREENSHOT_DESCRIPTION](SCREENSHOT_LINK.png)
"Logs
Package Version
advanced-alchemy is version 0.17.3. Full list:
Platform
The text was updated successfully, but these errors were encountered: