Open ananthasayana opened 3 years ago
I'm seeing the only=
field completely ignored in my code. It dumps every single field in the nested object. We're working around it for now by using the exclude=
instead but this obviously needs maintenance every time we change the nested schema.
Actual Result: {'title': 'nested only test', 'author': {}} Expected Result: {'title': 'nested only test', 'author': {'location': {'street': '4 cross'}}} Note: if I change
author = fields.Nested(UserSchema, only=['location'])
toauthor = fields.Nested(UserSchema, only=['location.street'])
it works. But, This does not solve purpose as there may be many fields in location nested field and need different fields for different scenarios.