mikeywaites / kim

Kim: A JSON Serialization and Marshaling framework
http://kim.readthedocs.org/en/latest/
Other
317 stars 17 forks source link

Nested mappers cannot access session.parent #99

Open jackqu7 opened 8 years ago

jackqu7 commented 8 years ago

session.parent can only be accessed in a collection: field.Collection(field.Nested(SomeMapper))

it will be null in the case of a simple field.Nested(SomeMapper)

mikeywaites commented 7 years ago

This is required as part of the #114 Feature. We will need to allow Nested to access the parent mapper so that it can find the role being used to marshal the mapper session.