marshmallow-code / marshmallow-code/marshmallow-sqlalchemy
Support for mapping model inheritance hierarchy
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 580
- Forks
- 101
- Avg merge
- 7h 6m
- Merged PRs (30d)
- 3
Description
SQLAlchemy supports mapping objects using inheritance, as described [here](https://docs.sqlalchemy.org/en/13/orm/inheritance.html).
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?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the SQLAlchemy inheritance documentation linked in the issue and compare its polymorphic identity model with marshmallow-sqlalchemy's schema-generation behavior. No repository files, tests, or entry points are named, and the requested behavior is not defined precisely; completion would require agreeing on the supported inheritance cases and expected subclass fields.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, sqlalchemy
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100