Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix serialization of List items if they are serialized by fields.Method. #1994

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

benedekh
Copy link

Fixes #1993.

This PR fixes a bug that is present in marshmallow 3.15.0 and 3.16.0 at least. The problem is, list items cannot be serialized by fields.Method due to wrong schema being attached to fields.Method. This PR fixes the bug and provides a minimalistic unit test to demonstrate the bug and to test the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Custom Method serialization of List items throws AttributeError
1 participant