YAML anchors, aliases and references
Author: electriquoCreated Jan 5, 2023Updated Jul 18, 2025
Labelsenhancement
Is your feature request related to a problem? Please describe. YAML supports anchors, aliases and references, but Dasel is unable to read it.
$ echo '
foo: &foo
one: 1
bar:
<<: *foo
two: 2
' | yq -y
foo:
one: 1
bar:
one: 1
two: 2
$ echo '
foo: &foo
one: 1
bar:
<<: *foo
two: 2
' | dasel -r yamlDescribe the solution you'd like Dasel should be able to render the YAML correctly
Source: TomWright/dasel