23 chars · 2 lines
Waiting for input
23 chars · 2 lines
Waiting for input
YAML anchor syntax troubleshooting
The sample places & after base but never supplies the anchor identifier. Because & begins structural anchor syntax, the parser expects a name before the anchored value can continue. This tool is free to use. No account or payment is required.
Last updated
The anchor name is the connection between &name and later *name aliases. Without that identifier the parser cannot record a reusable node reference.
A stray ampersand may come from an incomplete edit. If no aliases rely on the node, removing accidental anchor syntax is often clearer than adding an unused name.
Give the anchored mapping a name that aliases can reference later.
base: &
enabled: truebase: &defaults
enabled: trueCommon questions
It assigns an anchor name to a YAML node so later *name aliases can reference that node.
No. A bare & starts anchor syntax but does not provide the identifier required to define the anchor.
Anchors and aliases are source-level reuse features. Consumers typically receive the resolved data structure rather than the anchor syntax itself.
Debugging a specific YAML issue? Browse YAML troubleshooting.