Skip to content

TypeError: Schema.__init__() got an unexpected keyword argument 'include_data' #316

Description

@dempstert

Can't create any schemas at all.

class Price(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.String(128), index=True)

class PriceSchema(ma.SQLAlchemyAutoSchema):
    class Meta:
        model = Price

This raises the following error:

TypeError: Schema.__init__() got an unexpected keyword argument 'include_data'

Have also tried with ma.SQLAlchemySchema.

Installed:
flask version : 2.0.1
flask_marshmallow version : 0.14.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions