Catalog / yaml

YAML

Read, write, and validate YAML confidently โ€” scalars, collections, multiline blocks, anchors, and common gotchas that trip up DevOps practitioners

Install

$ learnctl install yaml@0.2.0

Current version 0.2.0, published 2026-07-09.

At a glance

Stages
8
Tasks
50
Interviews
36
Concepts
9
Time
6 h 46 m
Size
95.9 KB

Difficulty distribution

  1. d1 8
  2. d2 32
  3. d3 10
  4. d4 0
  5. d5 0

Table of contents

  1. 1. YAML Syntax and Scalars

    0 tasks
    • Write bare, single-quoted, and double-quoted strings correctly
    • Identify integers, floats, booleans, and null from their YAML representation
    • Predict when implicit typing fires (yes/no/true/false/null)
  2. 2. Lists and Sequences

    0 tasks
    • Write block-style sequences using dash-space notation
    • Write flow-style sequences inline
    • Nest sequences inside mappings and vice versa
  3. 3. Mappings

    0 tasks
    • Write block-style key-value mappings
    • Write flow-style mappings inline
    • Handle string keys that need quoting
  4. 4. Nesting and Indentation

    0 tasks
    • Express arbitrarily deep hierarchy using consistent indentation
    • Avoid tab characters in YAML
    • Write lists of mappings and mappings of lists
  5. 5. Multiline Strings

    0 tasks
    • Use literal block (|) to embed newline-preserving text
    • Use folded block (>) to embed paragraph-wrapped text
    • Apply chomping indicators (-, +) to control trailing newlines
  6. 6. Anchors and Aliases

    0 tasks
    • Define a reusable anchor with &name
    • Reference it with *name
    • Merge a mapping anchor with <<: *name
  7. 7. Explicit Types, Tags, and Documents

    0 tasks
    • Force string type with !!str to prevent implicit coercion
    • Use --- to separate multiple documents in one file
    • Apply !!int and !!float to override string values
  8. 8. Implicit Typing Gotchas

    0 tasks
    • Identify values that YAML 1.1 misinterprets (yes/no/on/off/NO/country codes)
    • Apply quotes or !!str to prevent the Norway problem
    • Audit a real YAML config for implicit-typing traps

All versions

VersionPublishedSizesha256
0.2.0 latest 2026-07-09 95.9 KB 991d707b46e3
0.1.0 2026-06-29 88.8 KB 17489502445a

Validation

Last validated 2026-06-29 on Windows-11 ยท 50/50 passed.