Ryba Ryba - 4 months ago 7
YAML Question

Yaml '=' key meaning

Yaml reference page mentions

=
key as
Default "value" mapping key.
but i cannot find any information about what does this key actually mean. Any ideas?

Also side question: why neither
<<
nor
=
are mentioned in spec when they are mentioned in reference page?

Answer

<< is a merge key.
= is a value key.

Both are part of the YAML type repository which is considered outdated by people active in the YAML community (since it is based on the outdated YAML 1.1). Support of them varies between YAML implementations; as they are not part of the spec, an implementation is not required to support them.