15 chars · 1 line
Waiting for input
15 chars · 1 line
Waiting for input
YAML alias resolution troubleshooting
The preloaded sample uses *defaults without defining &defaults first. The alias token itself is well formed, but the parser cannot resolve the referenced node because the document never creates that anchor. This tool is free to use. No account or payment is required.
Last updated
YAML anchors give a node a reusable name and aliases refer back to that node. Syntax such as *defaults is incomplete at the document level if no preceding &defaults anchor exists.
Configuration refactors often rename an anchor near the top of a file while leaving aliases later in the document unchanged. Review every alias when an anchor name changes rather than fixing only the first reported reference.
Define the defaults anchor before the copy alias references it.
copy: *defaultsbase: &defaults
enabled: true
copy: *defaultsCommon questions
It means a *name reference cannot find a corresponding previously defined &name anchor in the document.
Aliases are expected to reference anchors that have already been defined, so place the anchor before the alias that uses it.
Only if reuse was not intended. Otherwise restore the missing anchor or correct the reference name so the document keeps its intended structure.
Debugging a specific YAML issue? Browse YAML troubleshooting.