flask-rest-jsonapi icon indicating copy to clipboard operation
flask-rest-jsonapi copied to clipboard

Update marshmallow to 2.18.1

Open ivan-artezio opened this issue 6 years ago • 4 comments

Marshmallow 2.18.0 raises ChangedInMarshmallow3Warning for nested schemas which is annoying when running tests and clogs the logs. Marshmallow should be updated to 2.18.1 where this issue was fixed. https://marshmallow.readthedocs.io/en/3.0/changelog.html https://github.com/marshmallow-code/marshmallow/pull/1136

ivan-artezio avatar Jun 27 '19 09:06 ivan-artezio

I would say Marshmallow needs to be updated to 3.X

multimeric avatar Sep 13 '19 04:09 multimeric

I needed to upgrade Marshmallow to 3.2.1 and now I get an error File "/lib/python3.6/site-packages/flask_rest_jsonapi/resource.py", line 131, in get result = schema.dump(objects).data AttributeError: 'dict' object has no attribute 'data'

PATolk avatar Nov 01 '19 02:11 PATolk

Yes, the library has to be changed to make it Marshmallow 3 compatible. I've fixed this in my PR: #172. However it hasn't yet been merged.

multimeric avatar Nov 01 '19 03:11 multimeric

this can be closed now

auvipy avatar Sep 02 '21 10:09 auvipy