tiangolo / sqlmodel

SQL databases in Python, designed for simplicity, compatibility, and robustness.
https://sqlmodel.tiangolo.com/
MIT License
13.52k stars 611 forks source link

Added typecheck to sqlalchemy JSON #931

Open LucaGelmini opened 1 month ago

LucaGelmini commented 1 month ago

In sqlmodel/main.py there was missing a typecheck for the JSON type supported by sqlalchemy. So it was not possible to define a model with a JSON field.

mmmcorpsvit commented 1 month ago

please add JSONB support too