I'm using flask-restful, flask-sqlalchemy and flask-marshmallow to build an API service. I define the following -
ma = Marshmallow(app)
However, trying to access the @validates decorator using ma throws an error.
@ma.validates('field1')
What am I doing wrong? Is it better to directly use the marshmallow library and skip using flask-marshmallow altogether?