<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wikibase.ronzz.org/index.php?action=history&amp;feed=atom&amp;title=Cheatsheets%3AYaml</id>
	<title>Cheatsheets:Yaml - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wikibase.ronzz.org/index.php?action=history&amp;feed=atom&amp;title=Cheatsheets%3AYaml"/>
	<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Cheatsheets:Yaml&amp;action=history"/>
	<updated>2026-09-24T17:00:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Cheatsheets:Yaml&amp;diff=3045&amp;oldid=prev</id>
		<title>RonzzWikiCowriterAI: New YAML cheatsheet, following the collection&#039;s style. AI-assisted (RonzzWikiCowriter) (via create-page on MediaWiki MCP Server)</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Cheatsheets:Yaml&amp;diff=3045&amp;oldid=prev"/>
		<updated>2026-08-26T11:41:12Z</updated>

		<summary type="html">&lt;p&gt;New YAML cheatsheet, following the collection&amp;#039;s style. AI-assisted (RonzzWikiCowriter) (via create-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Cheatsheet}}&lt;br /&gt;
&lt;br /&gt;
YAML (&amp;#039;&amp;#039;&amp;#039;Y&amp;#039;&amp;#039;&amp;#039;AML &amp;#039;&amp;#039;&amp;#039;A&amp;#039;&amp;#039;&amp;#039;in&amp;#039;t &amp;#039;&amp;#039;&amp;#039;M&amp;#039;&amp;#039;&amp;#039;arkup &amp;#039;&amp;#039;&amp;#039;L&amp;#039;&amp;#039;&amp;#039;anguage) is a human-friendly data format — the de-facto standard for configuration files: GitHub Actions, Docker Compose, Ansible, Kubernetes, and the front matter of [[Cheatsheets:Quarto|Quarto]] documents. It describes plain data with just three building blocks: &amp;#039;&amp;#039;&amp;#039;scalars&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;lists&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;maps&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
New to YAML? The [https://learnxinyminutes.com/docs/yaml/ Learn YAML in Y minutes] tour may interest you.&lt;br /&gt;
&lt;br /&gt;
== Basic example ==&lt;br /&gt;
&lt;br /&gt;
A config file is mostly nested maps and lists. YAML parses to the JSON structure on the right:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! YAML !! Parsed as (JSON)&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; copy&amp;gt;&lt;br /&gt;
# pancake-service.yaml&lt;br /&gt;
service:&lt;br /&gt;
  name: Pancake API&lt;br /&gt;
  port: 8080&lt;br /&gt;
  debug: true&lt;br /&gt;
&lt;br /&gt;
database:&lt;br /&gt;
  host: localhost&lt;br /&gt;
  user: admin&lt;br /&gt;
  password: &amp;quot;s3cret!&amp;quot;&lt;br /&gt;
&lt;br /&gt;
features:&lt;br /&gt;
  - billing&lt;br /&gt;
  - search&lt;br /&gt;
  - loyalty&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot; copy&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;service&amp;quot;: {&lt;br /&gt;
    &amp;quot;name&amp;quot;: &amp;quot;Pancake API&amp;quot;,&lt;br /&gt;
    &amp;quot;port&amp;quot;: 8080,&lt;br /&gt;
    &amp;quot;debug&amp;quot;: true&lt;br /&gt;
  },&lt;br /&gt;
  &amp;quot;database&amp;quot;: {&lt;br /&gt;
    &amp;quot;host&amp;quot;: &amp;quot;localhost&amp;quot;,&lt;br /&gt;
    &amp;quot;user&amp;quot;: &amp;quot;admin&amp;quot;,&lt;br /&gt;
    &amp;quot;password&amp;quot;: &amp;quot;s3cret!&amp;quot;&lt;br /&gt;
  },&lt;br /&gt;
  &amp;quot;features&amp;quot;: [&amp;quot;billing&amp;quot;, &amp;quot;search&amp;quot;, &amp;quot;loyalty&amp;quot;]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Scalars ==&lt;br /&gt;
&lt;br /&gt;
Scalars are the leaf values. YAML guesses their type from the spelling:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! YAML !! Parsed as&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;name: Pancake API&amp;lt;/syntaxhighlight&amp;gt; || string &amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot; inline&amp;gt;&amp;quot;Pancake API&amp;quot;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;port: 8080&amp;lt;/syntaxhighlight&amp;gt; || integer &amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot; inline&amp;gt;8080&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;price: 4.50&amp;lt;/syntaxhighlight&amp;gt; || float &amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot; inline&amp;gt;4.5&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;debug: true&amp;lt;/syntaxhighlight&amp;gt; || boolean &amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot; inline&amp;gt;true&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;note: null&amp;lt;/syntaxhighlight&amp;gt; || null&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;released: 2024-01-15&amp;lt;/syntaxhighlight&amp;gt; || date&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;code: &amp;quot;1234&amp;quot;&amp;lt;/syntaxhighlight&amp;gt; || string — quotes force a string&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
Null also accepts &amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;~&amp;lt;/syntaxhighlight&amp;gt; or an empty value (&amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;note:&amp;lt;/syntaxhighlight&amp;gt;). Booleans also accept &amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;True/False&amp;lt;/syntaxhighlight&amp;gt;. In YAML 1.1 parsers &amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;yes/no/on/off&amp;lt;/syntaxhighlight&amp;gt; are booleans too — see [[#Gotchas|Gotchas]].&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Strings and quoting ==&lt;br /&gt;
&lt;br /&gt;
Most strings need no quotes at all. Quote the value when its spelling could be misread:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Want the string !! Write !! Why&lt;br /&gt;
|-&lt;br /&gt;
| &amp;quot;Pancakes: the recipe&amp;quot; || &amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;title: &amp;quot;Pancakes: the recipe&amp;quot;&amp;lt;/syntaxhighlight&amp;gt; || a colon followed by a space would start a nested key&lt;br /&gt;
|-&lt;br /&gt;
| &amp;quot;#ffcc00&amp;quot; || &amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;color: &amp;quot;#ffcc00&amp;quot;&amp;lt;/syntaxhighlight&amp;gt; || a &amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;#&amp;lt;/syntaxhighlight&amp;gt; at the start of a value begins a comment&lt;br /&gt;
|-&lt;br /&gt;
| &amp;quot;00123&amp;quot; || &amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;zip: &amp;quot;00123&amp;quot;&amp;lt;/syntaxhighlight&amp;gt; || leading zeros can parse as octal (YAML 1.1)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;quot;2024-01-15&amp;quot; || &amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;day: &amp;quot;2024-01-15&amp;quot;&amp;lt;/syntaxhighlight&amp;gt; || an unquoted date becomes a date, not a string&lt;br /&gt;
|-&lt;br /&gt;
| &amp;quot;NO&amp;quot; || &amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;country: &amp;quot;NO&amp;quot;&amp;lt;/syntaxhighlight&amp;gt; || YAML 1.1 parsers read &amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;NO&amp;lt;/syntaxhighlight&amp;gt; as the boolean &amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot; inline&amp;gt;false&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;quot; Ada &amp;quot; || &amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;name: &amp;quot; Ada &amp;quot;&amp;lt;/syntaxhighlight&amp;gt; || leading/trailing spaces are stripped in plain scalars&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Single vs double quotes&amp;#039;&amp;#039;&amp;#039; — the two styles that guarantee a string:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! YAML !! Parsed value&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;title: &amp;#039;It&amp;#039;&amp;#039;s ready&amp;#039;&amp;lt;/syntaxhighlight&amp;gt; || It&amp;#039;s ready — single quotes escape by doubling&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;message: &amp;quot;line1\nline2&amp;quot;&amp;lt;/syntaxhighlight&amp;gt; || line1 + newline + line2 — double quotes process &amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot; inline&amp;gt;\n&amp;lt;/syntaxhighlight&amp;gt;, &amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot; inline&amp;gt;\t&amp;lt;/syntaxhighlight&amp;gt;, &amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot; inline&amp;gt;\&amp;quot;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Collections ==&lt;br /&gt;
&lt;br /&gt;
=== Lists ===&lt;br /&gt;
&lt;br /&gt;
A dash and a space, one item per line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; copy&amp;gt;&lt;br /&gt;
features:&lt;br /&gt;
  - billing&lt;br /&gt;
  - search&lt;br /&gt;
  - loyalty&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Short lists can use flow style with square brackets:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; copy&amp;gt;&lt;br /&gt;
features: [billing, search, loyalty]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Maps ===&lt;br /&gt;
&lt;br /&gt;
Key–value pairs; nesting by indentation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; copy&amp;gt;&lt;br /&gt;
database:&lt;br /&gt;
  host: localhost&lt;br /&gt;
  port: 5432&lt;br /&gt;
  options:&lt;br /&gt;
    pool: 10&lt;br /&gt;
    timeout: 30&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Flow style:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; copy&amp;gt;&lt;br /&gt;
database: {host: localhost, port: 5432}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Lists of maps ===&lt;br /&gt;
&lt;br /&gt;
Configs are often a list of items, each item a map:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; copy&amp;gt;&lt;br /&gt;
users:&lt;br /&gt;
  - name: Ada&lt;br /&gt;
    role: admin&lt;br /&gt;
  - name: Bo&lt;br /&gt;
    role: viewer&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
Two spaces per level is the convention, but any consistent number of spaces works. &amp;#039;&amp;#039;&amp;#039;Tabs are forbidden&amp;#039;&amp;#039;&amp;#039; for indentation.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Multi-line strings ==&lt;br /&gt;
&lt;br /&gt;
Long text uses block scalars: &amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;|&amp;lt;/syntaxhighlight&amp;gt; keeps newlines (literal), &amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;&amp;gt;&amp;lt;/syntaxhighlight&amp;gt; folds them into spaces:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! YAML !! Parsed value&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; copy&amp;gt;&lt;br /&gt;
description: |&lt;br /&gt;
  Line one&lt;br /&gt;
  Line two&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot; copy&amp;gt;&lt;br /&gt;
Line one&lt;br /&gt;
Line two&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; copy&amp;gt;&lt;br /&gt;
summary: &amp;gt;&lt;br /&gt;
  Folded lines&lt;br /&gt;
  become one&lt;br /&gt;
  paragraph&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
||&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot; copy&amp;gt;&lt;br /&gt;
Folded lines become one paragraph&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Chomping indicators control the trailing newline: &amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;|&amp;lt;/syntaxhighlight&amp;gt; keeps one (default), &amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;|-&amp;lt;/syntaxhighlight&amp;gt; strips it, &amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;|+&amp;lt;/syntaxhighlight&amp;gt; keeps all. An explicit number (&amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;|2&amp;lt;/syntaxhighlight&amp;gt;) sets the block&amp;#039;s indentation.&lt;br /&gt;
&lt;br /&gt;
== Comments ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; copy&amp;gt;&lt;br /&gt;
# a whole-line comment&lt;br /&gt;
name: Pancake API   # a trailing comment&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Anchors and aliases ==&lt;br /&gt;
&lt;br /&gt;
Anchor a block with &amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;&amp;amp;name&amp;lt;/syntaxhighlight&amp;gt;, reuse it with &amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;*name&amp;lt;/syntaxhighlight&amp;gt;. The merge key &amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;&amp;lt;&amp;lt;&amp;lt;/syntaxhighlight&amp;gt; copies an anchor&amp;#039;s keys into a map:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; copy&amp;gt;&lt;br /&gt;
defaults: &amp;amp;defaults&lt;br /&gt;
  region: eu-west&lt;br /&gt;
  tier: free&lt;br /&gt;
&lt;br /&gt;
service-a:&lt;br /&gt;
  &amp;lt;&amp;lt;: *defaults&lt;br /&gt;
  name: A&lt;br /&gt;
&lt;br /&gt;
service-b:&lt;br /&gt;
  &amp;lt;&amp;lt;: *defaults&lt;br /&gt;
  name: B&lt;br /&gt;
  tier: paid          # overrides the merged value&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Result:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot; copy&amp;gt;&lt;br /&gt;
service-a  →  {region: eu-west, tier: free, name: A}&lt;br /&gt;
service-b  →  {region: eu-west, tier: paid, name: B}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
The merge key is a YAML 1.1 feature — supported by PyYAML, Ruby and most JavaScript parsers, but a strict YAML 1.2 parser may reject it.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Multiple documents ==&lt;br /&gt;
&lt;br /&gt;
Separate several documents in one stream with a line of &amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;---&amp;lt;/syntaxhighlight&amp;gt; (e.g. several Kubernetes objects in one file):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; copy&amp;gt;&lt;br /&gt;
---&lt;br /&gt;
name: v1&lt;br /&gt;
---&lt;br /&gt;
name: v2&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Gotchas ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Tabs are illegal in indentation.&amp;#039;&amp;#039;&amp;#039; YAML indentation must be spaces; a tab raises an error in most parsers.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;The Norway problem.&amp;#039;&amp;#039;&amp;#039; In YAML 1.1 parsers (PyYAML, Ruby, older JS libraries), &amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;yes/no/on/off/y/n&amp;lt;/syntaxhighlight&amp;gt; are booleans:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! YAML !! YAML 1.1 parser !! YAML 1.2 parser&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;country: NO&amp;lt;/syntaxhighlight&amp;gt; || boolean &amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot; inline&amp;gt;false&amp;lt;/syntaxhighlight&amp;gt; || string &amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot; inline&amp;gt;&amp;quot;NO&amp;quot;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Duplicate keys: the last one wins.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; copy&amp;gt;&lt;br /&gt;
name: Ada&lt;br /&gt;
name: Bo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
parses to &amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot; inline&amp;gt;name: Bo&amp;lt;/syntaxhighlight&amp;gt; — most parsers do not complain.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;An empty value is null.&amp;#039;&amp;#039;&amp;#039; &amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;note:&amp;lt;/syntaxhighlight&amp;gt; (nothing after the colon) is &amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot; inline&amp;gt;null&amp;lt;/syntaxhighlight&amp;gt;, not an empty string. For an empty string, write &amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;note: &amp;quot;&amp;quot;&amp;lt;/syntaxhighlight&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Any JSON is valid YAML.&amp;#039;&amp;#039;&amp;#039; YAML 1.2 is a superset of JSON — you can paste JSON straight into a &amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot; inline&amp;gt;.yaml&amp;lt;/syntaxhighlight&amp;gt; file.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further reading ==&lt;br /&gt;
&lt;br /&gt;
* [https://yaml.org/spec/1.2.2/ YAML 1.2 spec] — the official specification&lt;br /&gt;
* [https://learnxinyminutes.com/docs/yaml/ Learn YAML in Y minutes] — a brisk syntax tour&lt;br /&gt;
* [https://yaml-multiline.info/ yaml-multiline.info] — a playground for the block scalars (&amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;|&amp;lt;/syntaxhighlight&amp;gt; and &amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot; inline&amp;gt;&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;)&lt;br /&gt;
* [[Cheatsheets:Quarto]] — YAML front matter in Quarto documents&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
</feed>