yaml · v1.0 · 2026-07-20 · sha256 a07653f6bdc9988f

yaml v1.0A

Immutable. This exact content never changes and is served at /api/v1/blob/a07653f6bdc9988f.

---
name: yaml
description: Data serialization.
license: MIT
metadata:
  author: vant
  version: "1.0"
---

# YAML

> Data serialization.

---

## When To Use

- Config files
- Docker Compose
- GitHub Actions

---

## What To Do

### 1. Syntax

```yaml
key: value
number: 42
boolean: true
list:
  - item1
  - item2
object:
  nested: value
```

### 2. Anchors

```yaml
defaults: &defaults
  adapter: postgres

development:
  <<: *defaults
  database: dev
```

### 3. Common Files

| File | Use |
|------|-----|
| docker-compose.yml | Docker |
| .github/workflows/*.yml | CI/CD |
| .gitlab-ci.yml | GitLab CI |

### 4. Tools

```bash
# Validate
yamllint file.yml
python -c "import yaml; yaml.safe_load(open('f.yml'))"
```

---

**Role**: YAML Writer  
**Input**: Data  
**Output**: Config

> Config files.