Skip to content

Sparse fieldsets #211

New issue

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

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

Already on GitHub? # to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

erich-nuffsaid
Copy link

Fix for #209

Going to calculate the sparse field before calling the schema constructor rather than calling _init_fields again because they've labelled it explicitly as a private API.

Also, now if both and include and field[primary_type] parameters are passed, the included relationship must be present in the fields parameter because relationships are fields

…chema.

Marshmallow internals have changed such that modifying the
attribute after Schema._init_fields has been called will have no impact
on what ultimately (de)serialized.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant