You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am facing the following serialization requirement: using the representation model, serialize a List<AbstractBaseClass>. Serialization should manage the different derived classes on runtime.
I am thinking that a solution like adding YamlInclude attribute would get it working in the same way as XML de/serializers uses XmlInclude, and probably a good chance to use YAML tags in action.
What do you think?
Thanks for work great work on YamlDotNet Antonie. Keep pushing!
The text was updated successfully, but these errors were encountered:
Previously, serialization happened according to the properties's
declared type. This created problems for cases where the actual value
type differed from the declared type (polymorphism, ints boxed as
objects...).
Closesaaubry#26, aaubry#14
I am facing the following serialization requirement: using the representation model, serialize a List<AbstractBaseClass>. Serialization should manage the different derived classes on runtime.
I wrote a test case to exemplify it.
Please see: http://pastebin.com/gTfAx80G
I am thinking that a solution like adding YamlInclude attribute would get it working in the same way as XML de/serializers uses XmlInclude, and probably a good chance to use YAML tags in action.
What do you think?
Thanks for work great work on YamlDotNet Antonie. Keep pushing!
The text was updated successfully, but these errors were encountered: