{"id":18339008,"url":"https://github.com/xoofx/sharpyaml","last_synced_at":"2026-04-02T17:53:22.997Z","repository":{"id":39617904,"uuid":"13214950","full_name":"xoofx/SharpYaml","owner":"xoofx","description":"SharpYaml is a .NET library for YAML compatible with CoreCLR","archived":false,"fork":false,"pushed_at":"2024-02-17T10:09:11.000Z","size":7222,"stargazers_count":339,"open_issues_count":32,"forks_count":60,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-04-14T12:18:43.782Z","etag":null,"topics":["dotnet","dotnet-core","dotnet-standard","parser","yaml","yaml-parser","yaml-processor"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xoofx.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["xoofx"]}},"created_at":"2013-09-30T12:37:56.000Z","updated_at":"2025-03-06T08:27:51.000Z","dependencies_parsed_at":"2024-06-18T17:08:28.381Z","dependency_job_id":"f6fbb0eb-d6be-462a-9cc4-1d92a95b3e99","html_url":"https://github.com/xoofx/SharpYaml","commit_stats":{"total_commits":461,"total_committers":39,"mean_commits":"11.820512820512821","dds":0.7114967462039046,"last_synced_commit":"f7960e28f9461d4e60bcd04f622f413548937dc1"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xoofx%2FSharpYaml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xoofx%2FSharpYaml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xoofx%2FSharpYaml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xoofx%2FSharpYaml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xoofx","download_url":"https://codeload.github.com/xoofx/SharpYaml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248877968,"owners_count":21176244,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dotnet","dotnet-core","dotnet-standard","parser","yaml","yaml-parser","yaml-processor"],"created_at":"2024-11-05T20:16:12.599Z","updated_at":"2026-04-02T17:53:22.959Z","avatar_url":"https://github.com/xoofx.png","language":"C#","readme":"# SharpYaml [![Build Status](https://github.com/xoofx/SharpYaml/workflows/ci/badge.svg?branch=master)](https://github.com/xoofx/SharpYaml/actions)  [![NuGet](https://img.shields.io/nuget/v/SharpYaml.svg)](https://www.nuget.org/packages/SharpYaml/)\n\n**SharpYaml** is a .NET library that provides a **YAML parser and serialization engine** for .NET objects, **compatible with CoreCLR**.\n\n\u003e NOTICE:\n\u003e\n\u003e This project is no longer actively maintained since 2016, but it's still accepting Pull-Requests.\n\u003e\n\u003e Small improvements and fixes are welcome, but big refactoring won't likely be.\n\u003e\n\u003e Please, open an issue in case you are not sure about the changes you want to bring before working on a PR.\n\n## Usage\n\n```C#\nvar serializer = new Serializer();\nvar text = serializer.Serialize(new { List = new List\u003cint\u003e() { 1, 2, 3 }, Name = \"Hello\", Value = \"World!\" });\nConsole.WriteLine(text);\n```   \nOutput:\n\n\tList:\n\t  - 1\n\t  - 2\n\t  - 3\n\tName: Hello\n\tValue: World!\n\n## Features\n\nSharpYaml is a fork of [YamlDotNet](http://www.aaubry.net/yamldotnet.aspx) and is adding the following features:\n\n - Supports for `.netstandard2.0`\n - Memory allocation and GC pressure improved\n  - Completely rewritten serialization/deserialization engine\n - A single interface `IYamlSerializable` for implementing custom serializers, along `IYamlSerializableFactory` to allow dynamic creation of serializers. Registration can be done through `SerializerSettings.RegisterSerializer` and `SerializerSettings.RegisterSerializerFactory`\n   - Can inherit from `ScalarSerializerBase` to provide custom serialization to/from a Yaml scalar \n - Supports for custom collection that contains user properties to serialize along the collection.\n - Supports for Yaml 1.2 schemas \n - A centralized type system through `ITypeDescriptor` and `IMemberDescriptor`\n - Highly configurable serialization using `SerializerSettings` (see usage)\n   - Add supports to register custom attributes on external objects (objects that you can't modify) by using `SerializerSettings.Register(memberInfo, attribute)`\n   - Several options and settings: `EmitAlias`, `IndentLess`, `SortKeyForMapping`, `EmitJsonComptible`, `EmitCapacityForList`, `LimitPrimitiveFlowSequence`, `EmitDefaultValues`\n   - Add supports for overriding the Yaml style of serialization (block or flow) with `SerializerSettings.DefaultStyle` and `SerializerSettings.DynamicStyleFormat`  \n - Supports for registering an assembly when discovering types to deserialize through `SerializerSettings.RegisterAssembly`\n - Supports a `IObjectSerializerBackend` that allows to hook a global rewriting for all YAML serialization types (scalar, sequence, mapping) when serializing/deserializing to/from a .NET type.\n \n## Download\n\nSharpYaml is available on [![NuGet](https://img.shields.io/nuget/v/SharpYaml.svg)](https://www.nuget.org/packages/SharpYaml/)\n\n## License\nMIT\n","funding_links":["https://github.com/sponsors/xoofx"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxoofx%2Fsharpyaml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxoofx%2Fsharpyaml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxoofx%2Fsharpyaml/lists"}