You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When defining default values in a JsonModel, these values are unexpectedly being set as ExpressionProxy objects instead of the intended default values.
Expected Behavior:
Default values defined in the model should be directly set as the specified values.
Actual Behavior:
Default values are replaced with ExpressionProxy objects.
For some odd reason in child classes it looks like some context WRT the defaults is being lost, I opened a PR to fix it (it just applies the defaults).
When defining default values in a JsonModel, these values are unexpectedly being set as ExpressionProxy objects instead of the intended default values.
Expected Behavior:
Default values defined in the model should be directly set as the specified values.
Actual Behavior:
Default values are replaced with ExpressionProxy objects.
Steps to reproduce:
When running the following code:
produces the following output:
Additional Notes:
However, replacing JsonModel by pydantic BaseModel works fine
This code produces the following output:
Environment
redis-om
version: 0.3.3pydantic
version: 2.9.2The text was updated successfully, but these errors were encountered: