Open kodfodrasz opened 3 years ago
Suppose the following:
let yml = "
key_one_val_1 : foo
key_one_val_2 : baz
"
Deserialize<Dictionary<string,string>> yml
Wich results in:
[Success { Data = dict [("key_one_val_1", "foo"); ("key_one_val_2", "baz")] Warn = [] }]
I guess these need to be untouched?
Also, what kind of function did you have in mind to inject:
Plus, besides this feature, one can still apply an annotation, this should overrule (omit) the injected function.
Thanks for this suggestion anyway. I'll have a look into this.
Description
I'd need a way to provide naming conventions between yaml document field names and .net type field/property names, where I don't need to annotate the complete type hierarchy.
Repro steps
Please provide the steps required to reproduce the problem
YamlFieldAttribute
setup:Deserialize<Document> theDocString
Expected behavior
Have a way to specify a mapper. If there is a way, have it documented and have a simple example.
Actual behavior
I could no find a way apart from annotating everything
Known workarounds
I can annotate every field, but over a certain size this is cumbersome and error prone.
Related information