Optional
aliasOptional
anchorDefault prefix for anchors.
Default: 'a'
, resulting in anchors a1
, a2
, etc.
Optional
flow?: booleanForce the top-level collection node to use flow style.
Optional
keepKeep undefined
object values when creating mappings, rather than
discarding them.
Default: false
Optional
onOptional
tag?: stringSpecify the top-level collection type, e.g. "!!omap"
. Note that this
requires the corresponding tag to be available in this document's schema.
During node construction, use anchors and aliases to keep strictly equal non-null objects as equivalent in YAML.
Default:
true