Skip to content

YamlWriterFormat

Definition

Namespace: Corvus.Text.Json.Yaml
Assembly: Corvus.Text.Json.dll

Specifies the output dialect produced by the YAML writer.

public enum YamlWriterFormat : IComparable, ISpanFormattable, IFormattable, IConvertible

Implements

IComparable, ISpanFormattable, IFormattable, IConvertible

Fields

Field Type Description
Yaml static YamlWriterFormat Canonical YAML (the default). Block style by default, with scalars quoted only when required to round-trip safely.
Kyaml static YamlWriterFormat KYAML — a strict subset of YAML 1.2 (Kubernetes KEP-5295) intended for unambiguous, predictable output.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests.

Open an issue