Skip to content

YamlDocumentMode

Definition

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

Specifies how multi-document YAML streams are handled.

public enum YamlDocumentMode : IComparable, ISpanFormattable, IFormattable, IConvertible

Implements

IComparable, ISpanFormattable, IFormattable, IConvertible

Fields

Field Type Description
SingleRequired static YamlDocumentMode Require a single document. If the stream contains more than one document, a YamlException is thrown.
MultiAsArray static YamlDocumentMode Multiple documents are wrapped in a JSON array. A single document stream produces a one-element array.

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