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

Support for mapping model inheritance hierarchy

Open eltrufas opened this issue 6 years ago • 0 comments

SQLAlchemy supports mapping objects using inheritance, as described here.

Would it be possible to make the schema include extra fields in these subclasses depending on the polymorphic identity defined on the model?

If baking such a thing into the library is not feasible, has anyone with a similar use case found a relatively clean and robust solution for this?

eltrufas avatar Jul 18 '19 00:07 eltrufas