Configuration Nodes

This information is not required for basic usage

Stability

This API is currently unstable. It may change between minor versions without warning.

Structure

Internally, a configuration is represented by a set of nodes. Each node represents some value. We can see the node structure for some YAML:

number: 10
string: abcdefg

list:
  - 1
  - 2
  - 3

mapping:
  a: b
  c: d

In this case, the underlying node structure would look something like this:

Mapping(
  String("number") -> Number(10)
  String("string") -> String("abcdefg")
  String("list") -> List(
    Number(1)
    Number(2)
    Number(3)
  )
  String("mapping") -> Mapping(
    String("a") -> String("b")
    String("c") -> String("d")
  )
)

Some values such as Number(10) can even be interpreted as String("10") depending on the context.

Last updated