Skip to content

YamlWriterFormat.Kyaml Field

Definition

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

Kyaml()

KYAML — a strict subset of YAML 1.2 (Kubernetes KEP-5295) intended for unambiguous, predictable output.

YamlWriterFormat Kyaml

Returns

YamlWriterFormat

Remarks

In this mode every mapping is rendered with explicit { } braces and every sequence with explicit [ ] brackets, laid out across multiple indented lines with a trailing comma after every element. String values are always double-quoted; numbers, booleans, and null are written bare. Mapping keys are quoted only when they would otherwise be ambiguous. KYAML output is always valid YAML 1.2, so it can be read by any conforming YAML parser (including this library's reader).

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