marshmallow-code / marshmallow-sqlalchemy

SQLAlchemy integration with marshmallow
https://marshmallow-sqlalchemy.readthedocs.io
MIT License
549 stars 94 forks source link

Is it possible to use database column comments as descriptions? #519

Open Anti-Distinctlyminty opened 1 year ago

Anti-Distinctlyminty commented 1 year ago

I have an API that uses flask_smoest, flask_sqlalchemy and flask_marshmallow to render the API docs. MY database us created using SQL files and documentation for the columns is stored in COMMENT ON COLUMN... SQL statements. I believe that SQLAlchemy has access to this comment property, and I was wondering if it was possible to use this as the description in an SQLAchemyAutoSchema?