YAML
Table of Contents
Anchors and References
But this mechanism just works as replacements. You shouldn't expect yaml to handle nested structures.
base: &base
a: 10
b:
c: 10
foo:
<<: *base
b:
d: 20
# foo is equivalent to:
foo:
a: 10
b: # overrideen, not inherited
d: 20
If you want to make an effect like inheritance: