marshmallow-jsonapi icon indicating copy to clipboard operation
marshmallow-jsonapi copied to clipboard

Bulk loading doesn't work

Open maurges opened this issue 4 years ago • 0 comments

Cf. this stackoverflow question (not mine)

When you try to load items in bulk like this: data = UserSchema(many=True).load(input_data), you get an error: AttributeError: 'list' object has no attribute 'get'

This happens because the _do_load overload of the schema doesn't check for many before attempting to call dict methods here

maurges avatar May 14 '21 09:05 maurges