marshmallow-sqlalchemy
marshmallow-sqlalchemy copied to clipboard
SQLAlchemy integration with marshmallow
I am working on a project to serialize SQLAlchemy model metadata but the base marshmallow dev does not support this and I get errors. Is this something that supported, or...
Hi, I have an issue with my data structure. Not sure if it's a bug, or (more probably), something that could be solved by tweaking the shema. I have two...
I am trying to deserialize a deep structure with marshmallow. For example: ``` hour = { 'day': { 'name': 'monday' } } loaded_hour, error = HoursSerializationSchema().load(hour) # this works new_practitioner_at_location...
Hello, I have a problem with nested that have a foreign key which is also a primary key. What I'm trying to accomplish is extremely simple. ```python Base: Any =...
When trying to `load` JSON data where a field contains (nested) JSON data and the SQLAlchemry field type is `JSON`, I get a `ValidationError` saying `marshmallow.exceptions.ValidationError: {'defaults': ['Not a valid...
Hi, I've created an Association Table as described in the [SQLAlchemy manual](http://docs.sqlalchemy.org/en/rel_1_0/orm/basic_relationships.html#association-object), however when I try to load on a POST request I get this response: ``` RuntimeError: Model has...
Marshmallow-sqlalchemy contains a Field ~~"Result"~~ Related but the documentation doesn't reference it at all. Document Related field, and give examples of it's use.
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...
I have two models: `Projects` and `Subscriptions`. Each project can have multiple subscriptions (one-to-many). I started from this code: ``` class SubscriptionSchema(ma.ModelSchema): class Meta: model = Subscription class ProjectSchema(ma.ModelSchema): class...