aaubry / YamlDotNet

YamlDotNet is a .NET library for YAML
MIT License
2.54k stars 477 forks source link

Static code generation fails to generate code for Dictionary and List which use Array values #854

Closed prochnowc closed 12 months ago

prochnowc commented 12 months ago

Describe the bug

The static code generator throws NotSupportedException when using Dictionary<string, string[]> or List<string, string[]>.

To Reproduce

Add the source generator package to the project and add the following types:

[YamlStaticContext]
public class MyContext { }

[YamlSerializable]
public class Model {
   public Dictionary<string, string[]> MyDictionary { get; set; }
}