miLibris / flask-rest-jsonapi

Flask extension to build REST APIs around JSONAPI 1.0 specification.
http://flask-rest-jsonapi.readthedocs.io
MIT License
598 stars 153 forks source link

schema.py: Fix for get_nested_fields #194

Open aditya-bhawsingka opened 3 years ago

aditya-bhawsingka commented 3 years ago

Having a list field on schema is giving an error after upgrading to the latest version. The get_nested_fields function is trying to access an attribute 'container' on a list field, which as per latest marshmallow version does not exist. So replacing it with a new field called 'inner'.

coveralls commented 3 years ago

Coverage Status

Coverage remained the same at 90.416% when pulling c953d3467d97b0a0f9ce6041b1cd717b7f43b4ee on aditya-ignite:master into a4ff3f4d5be78071f015efe003e976d31d4eba10 on miLibris:master.

coveralls commented 3 years ago

Coverage Status

Coverage remained the same at 90.416% when pulling c953d3467d97b0a0f9ce6041b1cd717b7f43b4ee on aditya-ignite:master into a4ff3f4d5be78071f015efe003e976d31d4eba10 on miLibris:master.

igieon commented 3 years ago

I have the same problem this change was introduced https://github.com/marshmallow-code/marshmallow/commit/bff0ba2560b2812eeebed5d564e855a98809e66a Or here https://github.com/marshmallow-code/marshmallow/blob/dev/CHANGELOG.rst#300rc8-2019-07-04