🍋
Menu
.yaml Code

YAML (YAML Ain't Markup Language)

YAML ist ein menschenlesbares Datenserialisierungsformat, das Einrückung statt Klammern verwendet. Es wird häufig für Konfigurationsdateien und CI/CD-Pipelines verwendet.

MIME-Typ

application/x-yaml

Typ

Text

Komprimierung

Verlustfrei

Vorteile

  • + Highly readable — minimal syntax noise
  • + Supports comments for inline documentation
  • + Native in Docker, Kubernetes, Ansible, and CI/CD systems
  • + Superset of JSON — any JSON is valid YAML

Nachteile

  • Indentation-sensitive — whitespace errors cause silent failures
  • Implicit type coercion can cause bugs ('yes' becomes boolean true)
  • More complex specification than JSON with anchors, tags, and directives

Wann Sie .YAML verwenden sollten

Verwenden Sie YAML für Konfigurationsdateien (Kubernetes, Docker, CI/CD), wenn Lesbarkeit Priorität hat. Für APIs und Datenaustausch verwenden Sie JSON.

Technische Details

YAML verwendet Einrückung für Verschachtelung, Bindestriche für Listen und Doppelpunkte für Schlüssel-Wert-Paare. Es ist eine Obermenge von JSON und unterstützt Anker, Aliase und mehrzeilige Strings.

Geschichte

Clark Evans spezifizierte YAML 2001 als menschenfreundliche Alternative zu XML. Es hat sich zum Standard für DevOps-Konfiguration (Kubernetes, Docker Compose, GitHub Actions) entwickelt.

Von .YAML konvertieren

In .YAML konvertieren

Verwandte Formate

Verwandte Begriffe

Learn More