YamlDotNet
YamlDotNet copied to clipboard
YamlDotNet is a .NET library for YAML
I have a yaml file. ```yaml --- Name: aaa Age: 12 Props: "text/html": a ``` And I have a class. ```csharp public class YamlData { public string Name { get;...
Hi, I'm using your library to generate my I18n translations right here : https://github.com/NosWings/NosWings.Server.Translations I got a Dictionary, with an enum as a key and a string as value (for...
The DefaultValuesHandling behaviour is not being applied to dynamic properties. To reproduce, run the following code on version 8.0.0 ```csharp private static void Main(string[] args) { dynamic exportModel = new...
Hi I want to write some tests for serialization, my first naive approach is similar to the following code: ```C# [Test] public void Test_Deserialization() { MyClass instance = BuildTestInstance(); ISerializer...
Implement option to write sequences out in flow stlye for only certain fields with primitive arrays
Sequences are currently being written out as blocks. There should be a public variable in the emitter to set the style to flow on certain fields that hold arrays with...
I have the following yaml file id : 123 a : bob child: x : 10 y : 30 When reading the above using (var reader = new StringReader(yaml)) {...
``` #TestYaml test: /{param}: type: { collectionsTypes.mutableResource:{}} ``` The above YAML works fine in all other YAML parsers but not this one. I get the following exception: ```(Line: 4, Col:...
Using TypeConverter for this is quite complicated and as far as I understand full parsing needs to be implemented. The feature is present in Json.Net and I expected to find...
At https://github.com/aaubry/YamlDotNet/blob/2b78ca887b62923f922e5b5c614b472584f8f05e/YamlDotNet/Serialization/ObjectFactories/DefaultObjectFactory.cs#L45
It would be nice to not have to adjust the serialized yaml (by adding tags) to have the deserializer capable of distinguishing types based on what key names or value...