Skip to content

YAML-Basics

Key Value Pair
Syntax= Key: Value (Note the space after the colon: sign)
Examples=
Rocket: Starship
Fuel: Methalox
Engine: Raptor2

Array/Lists (Note the dash- sign, this indicates is an element of an array)
Examples=
Rockets:
- SaturnV
- Falcon9
- Ariane5

Planets:
- Earth
- Mars
- Venus

Dictiniorary/Map (Note that the amount of spaces is important here, different amount indicate different hierarchy)
Examples=
Starship:
  Agency: SpaceX
  Fuel: Methalox
  Engine: Raptor2

Falcon9:
  Agency: SpaceX
  Fuel: Kerosene+LOX
  Engine: Merlin