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
Table of contents
-
1. YAML Syntax and Scalars
- 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. Lists and Sequences
- Write block-style sequences using dash-space notation
- Write flow-style sequences inline
- Nest sequences inside mappings and vice versa
-
3. Mappings
- Write block-style key-value mappings
- Write flow-style mappings inline
- Handle string keys that need quoting
-
4. Nesting and Indentation
- Express arbitrarily deep hierarchy using consistent indentation
- Avoid tab characters in YAML
- Write lists of mappings and mappings of lists
-
5. Multiline Strings
- Use literal block (|) to embed newline-preserving text
- Use folded block (>) to embed paragraph-wrapped text
- Apply chomping indicators (-, +) to control trailing newlines
-
6. Anchors and Aliases
- Define a reusable anchor with &name
- Reference it with *name
- Merge a mapping anchor with <<: *name
-
7. Explicit Types, Tags, and Documents
- 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. Implicit Typing Gotchas
- 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
| Version | Published | Size | sha256 |
|---|---|---|---|
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.