Skip to content

YAML Datatypes

Learn about YAML's three core data types (scalars, sequences, and mappings) and how they form collections like lists and dictionaries.

In YAML there are three types data types:

  • Scalars: Scalars are values like Strings, Integers, Booleans, etc.
  • Sequences: Sequences are lists with each item starting with a hyphen (-). Lists can also be nested.
  • Mappings: Mapping gives the ability to list keys with values. They are like dictionaries or hash maps.
Navigation