Path: redb-route/redb.Route.DataFormats.Yaml/README.md Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.DataFormats.Yaml/README.md ---- # redb.Route.DataFormats.Yaml > Documentation and articles: YAML as a redb.Route data format, on [YamlDotNet](https://github.com/aaubry/YamlDotNet). ```csharp .UnmarshalYaml() // string / byte[] / Stream → POCO .UnmarshalYaml() // → Dictionary / List tree .MarshalYaml(o => o.NamingConvention = PascalCaseNamingConvention.Instance) context.AddYamlDataFormat(); // then Marshal("application/yaml"), Unmarshal("application/yaml"), // and ContentType-driven Unmarshal() for application/x-yaml, text/yaml ``` Options: `NamingConvention` (camelCase by default, like the JSON codec), `IgnoreUnmatchedProperties` (`true`). Malformed YAML fails with an error naming the format.