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

Sqlalchemy @property Causes 'unknown Field' Error In Marshmallow With Dump_only

I'm using flask-marshmallow (marshmallow=v3.0.0rc1, flask-marshmallow=0.9.0) and flask-sqlalche… Read more Sqlalchemy @property Causes 'unknown Field' Error In Marshmallow With Dump_only

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'

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

Marshmallow: Convert Dict To Tuple

Given that the input data x are: {'comm_name': 'XXX', 'comm_value': '12… Read more Marshmallow: Convert Dict To Tuple

Python Marshmallow - Customize Formatting Of Class Member

I have Marshmallow serializer written as class TestSchema(Schema): created_date = fields.Str(r… Read more Python Marshmallow - Customize Formatting Of Class Member

Is It Possible To Validate List Using Marshmallow?

Is it possible to validate list using marshmallow? class SimpleListInput(Schema): items = field… Read more Is It Possible To Validate List Using Marshmallow?