Suppose I had serialized a given schema A
, and then updated it to schema A'
by adding a new nullable field X
to it. Could I deserialize objects serialized using schema A
with schema A'
? After deserialization, will the new field have value null
?
Asked
Active
Viewed 106 times
2

Anton Schwaighofer
- 3,119
- 11
- 24

yuvalm2
- 866
- 2
- 10
- 27
1 Answers
2
The answer depends on whether your field is marked "required" or not (see documentation)
- If marked required, deserialization will fail.
- If not required, you can deserialize objects with schema
A'
from a payload that was generated by schemaA
and the fieldX
will be null.
See also this SO question on schema evolution, and the section in the Bond documentation.

Community
- 1
- 1

Anton Schwaighofer
- 3,119
- 11
- 24