msgpack-cli icon indicating copy to clipboard operation
msgpack-cli copied to clipboard

Not backwards compatible when adding new property using DataMember attribute

Open crosscourt opened this issue 8 years ago • 1 comments

[DataMember(IsRequired = false)] public string NewField { get; set; }

It seems adding a new field is not supported. Got an exception "Input string was not in a correct format"

crosscourt avatar Jul 03 '17 09:07 crosscourt

IsRequired of [DataMember] is not supported for backward compatibility methods now, you can get compatibility when you set SerializationMethod to Map instead of Array on SerializationContext.

yfakariya avatar Aug 11 '17 05:08 yfakariya