Skip to content

Fix nested serializer required field validation when partial=False (#2585) - #10068

Open
kernelshard wants to merge 3 commits into
encode:mainfrom
kernelshard:fix-2585-nested-serializer-partial
Open

kernelshard wants to merge 3 commits into
encode:mainfrom
kernelshard:fix-2585-nested-serializer-partial

Conversation

@kernelshard

Copy link
Copy Markdown
Contributor

Fixes #2585.

When a nested serializer specifies partial=False, its fields were still being skipped on partial updates because fields checked self.root.partial instead of their parent serializer.

This changes fields to check self.parent.partial, and allows nested serializers to inherit partial from their parent unless explicitly set.

@auvipy
auvipy self-requested a review October 7, 2026 02:36

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

fields of a Serializerclass field are skipped if root serializer is partial

2 participants