Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Nested excludes get overwritten #728
It seems whenever an parent level exclude is specified with dot notation, the child field level excludes are overwritten. It would be great if they could be concatenated.
Here's an example:
I expect :
instead, I get:
referenced this issue
Jan 30, 2018
I ran into a funky edge case that has security implications. I reported the underlying issue as #772.
class ChildSchema(Schema): foo = fields.Field() bar = fields.Field() class ParentSchema(Schema): baz = fields.Nested(ChildSchema, only=('bar',)) schema = ParentSchema(only=('baz.foo',))
The result of the intersections of these
This change to
Here is a working fix for this issue: 2.x-line...deckar01:728-only-exclude-inheritance-fix
It has a failing test due to #772.