YamlDotNet
YamlDotNet copied to clipboard
YamlDotNet is a .NET library for YAML
Example input file any scene from Unity3D. Example code: var input = new StringReader(File.ReadAllText("Scene1.unity")); var yaml = new YamlStream(); yaml.Load(input); var tw = File.CreateText(sc.path + ".yaml"); yaml.Save(tw,false); Verification shell command:...
Hello,Is it possible to add attributes to specified fields to implement a custom serialization and deserialization method? For example Newtonsoft.Json [JsonConverter(typeof(CustomConverter))] ` var serializer = new SerializerBuilder() .WithTypeConverter(new CustomConverter()) .Build();`...
Is there a way to load yaml files with duplicated keys without throwing any exception?
### Describe the bug After the fixes from https://github.com/aaubry/YamlDotNet/pull/491, the `SerializationTests.ExampleFromSpecificationIsHandledCorrectlyWithLateDefine()` test should fail. Placement of anchors after aliases referring to them is not [spec](https://yaml.org/spec/1.2.2/)-compliant. ### To Reproduce Execute the...
Description: I have a YAML configuration that includes external files using the !include directive, like this: ```yaml views: - !include views/home.yaml - title: Světnice path: dashboard badges: ... ``` I'm...
**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] ``` // public List?...
### Discussed in https://github.com/aaubry/YamlDotNet/discussions/861 Originally posted by **JamesTheButler** October 30, 2023 Hi everyone! I am serializing a class that contains a public `Action` field. Consider the following example: ``` record...
Hello there! The question in short is: Can I change to order, so the members of inherited classes get serialized first, without manually sorting everything? More info: I want to...
Looking for a way of adding new line per every new line ```cs var yamlSerializer = new SerializerBuilder() .AddNewLinePerEveryNewItem() // smth like this or similar API .Build() ``` Before: ```yaml...
Dear Antoine, Edward, We need to process some data from comments in yaml files. In these comments we usually got some descriptions about data types, ranges, available values. So I've...