Skip to content Skip to sidebar Skip to footer
Showing posts with the label Marshmallow

Define Fields Programmatically In Marshmallow Schema

Say I have a Schema like this: class MySchema(Schema): field_1 = Float() field_2 = Float()… Read more Define Fields Programmatically In Marshmallow Schema

Attributeerror: 'dict' Object Has No Attribute '_sa_instance_state'

Am creating a flask_restful API with sqlalchemy and marshmallow. Here is my model class User(db.Mo… Read more Attributeerror: 'dict' Object Has No Attribute '_sa_instance_state'

Modeling Relationships In Sqlalchemy To Show Nested "sets" With Marshmallow

I'm trying to figure out how to model (flask-)SQLAlchemy and (flask-)Marshamallow to provide th… Read more Modeling Relationships In Sqlalchemy To Show Nested "sets" With Marshmallow

Flask's Jsonify Function Inconsistent With Flask-marshmallow

I am developing an API using flask-RESTful and am having an issue with Flask's jsonify function… Read more Flask's Jsonify Function Inconsistent With Flask-marshmallow