Skip to content

YAML anchors

YAML anchors and pointers are not well defined across YAML version.

For example Merge Keys are only part of YAML 1.1 which is deprecated, and not part of YAML 1.2.

While the feature seems esoteric enough and should probably not be relied on, it is sometimes convenient.

Chainsaw supports the --remarshal flag to experimentally enable YAML Anchor, Aliases and Merge Keys before parsing the the YAML content.

Configuration

Note

Remarshaling can't be configured with a configuration file.

With flags

chainsaw test --remarshal