YamlDotNet icon indicating copy to clipboard operation
YamlDotNet copied to clipboard

YamlDotNet should use attribute System.Runtime.Serialization.Datamember

Open ramon-garcia opened this issue 5 years ago • 1 comments

Although there is already an attribute YamlMember, DataMember does not depend on Yaml, and allows one to have consistent serialized field names in YamlDotNet and System.Text.Json

Best regards.

ramon-garcia avatar Dec 21 '19 20:12 ramon-garcia

Adding this support would consist of creating an implementation of ITypeInspector that inspects the DataMember attribute to enrich the metadata. The implementation should be similar to YamlAttributesTypeInspector

aaubry avatar Mar 13 '20 16:03 aaubry