marshmallow-sqlalchemy icon indicating copy to clipboard operation
marshmallow-sqlalchemy copied to clipboard

Is it possible to use database column comments as descriptions?

Open Anti-Distinctlyminty opened this issue 2 years ago • 0 comments

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?

Anti-Distinctlyminty avatar Jun 16 '23 12:06 Anti-Distinctlyminty