I ran into this feature (?) where dictionaries are implicitly converted to ndb.Model objects
I have following ndb.Model class
class DateOfBirth(ndb.Model)
day = ndb.IntegerProperty()
month = ndb.IntegerProperty()
year = ndb.IntegerProperty()
class User(ndb.Model):
dob = ndb.StructuredProperty(DateofBirth)
And at one place when I accidentally passed in a dict
user.dob = {"day": 12, "month": 10, "year": 1983}
It didn't complain and looks like it worked.
Is this expected, or am I expected to run into issues later (as this behavior is not documented and expected to break anytime)