YamlDotNet
YamlDotNet copied to clipboard
YamlDotNet is a .NET library for YAML
**My sample code:** ``` class Person { public int Age = 0; public string Name = string.Empty; } ``` ``` public static void SerializePerson() { List persons = new List();...
**Describe the bug** If the YAML has a value set to `null`, but the object does not declare the type as nullable, YamlDotNet forces it to be `null` anyway (reference...
I didn't find out a way to validate an unknown YAML string in c# It would be nice to have an `.Validate()` method to verify that the current string is...
**Describe the bug** I'm currently trying to parse a very large YAML file, approximately 4.8 GB, and it's failing. **UPDATE:** I was able to parse the 4.8 GB file by...
https://github.com/kubernetes-client/csharp/issues/1537 raised that deserialization (and serialization) is not currently thread-safe, due to concurrent access to the non-thread-safe `_stateMethods` dictionary in `DefaultObjectFactory`. This PR changes the nested inner `Dictionary`s in `_stateMethods`...
**Describe the bug** Concurrently deserializing or serializing the same type from multiple threads can fail. Example stack trace: ``` Operations that change non-concurrent collections must have exclusive access. A concurrent...
**Is your feature request related to a problem? Please describe.** When my packages are analyzed in Dependency Track using SBOM files the licence is not able to be determined for...
I started to [prepare the library for trmming according to documentation](https://learn.microsoft.com/en-us/dotnet/core/deploying/trimming/prepare-libraries-for-trimming). My goal was to be able to publish my project (which uses YamlDotNet) trimmed without getting a warning. I...
**Describe the bug** Deserializing an object, using PascalCase naming convention, appears to break YamlDotNet if the serialization process was not already in `PascalCase`, i.e. serialized with CamelCase or UnderScored naming...
I'm playing around with building a class that will model how the OpenTelemetry Collector's config works. Specifically, they have a format that takes a list of components, but does them...