YamlDotNet
YamlDotNet copied to clipboard
YamlDotNet should use attribute System.Runtime.Serialization.Datamember
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.
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