For anyone seeing this now, I made a working solution for this that supports types from 3rd party libraries, enums and more. github.com/eschallack/SQLAlchemyToPydantic# here's a link to an example of json schema generation github.com/eschallack/SQLAlchemyToPydantic/blob/main/example/…