Reference

std/yaml/resolve

std/yaml/src/resolve.trb

From the tree as it was written to what it means: aliases replaced by the nodes their anchors stand on, counted against a limit; merge keys applied; and a document without a type read into an EncodedValue by a schema.

type YamlTag

type YamlTag

A local tag and the type it stands for. A typed decode checks a node's tag against the type it reads, and a typed encode writes the tag; caseName makes the tag choose a case of a type with cases (!circle for Shape.Circle).

typeName is the qualified name a type announces to a format: the package, the module path inside it, and the type - "app/geometry/Point".

Examples

use Yaml from "std/yaml"

const yaml = Yaml tags: [YamlTag("!point", "app/Point")]
print yaml.tags

field tag

tag: String

The tag as written, !point.

field typeName

typeName: String

Not documented.

field caseName

caseName: String? = None

Not documented.