3
0
Fork 0

fix: serialize None to null, for ObjectRef schema type

not sure how this didn't come up until now..anyway hopefully it's the
right thing but we'll see
This commit is contained in:
Lance Edgar 2026-03-08 12:26:21 -05:00
parent 634c1b1fe5
commit 19cf6cf03a
2 changed files with 8 additions and 4 deletions

View file

@ -257,6 +257,8 @@ class TestObjectRef(DataTestCase):
typ = mod.ObjectRef(self.request)
value = typ.serialize(node, colander.null)
self.assertIs(value, colander.null)
value = typ.serialize(node, None)
self.assertIs(value, colander.null)
# model instance
person = model.Person(full_name="Betty Boop")