YAML profile
YAML profile
Frontmatter, rich fences and .rstyle.yaml files are read by one profile: the YAML 1.2 core schema with these limits. Every reader uses it, so two hosts never disagree about what a source says.
| Construct | Rule |
|---|---|
| A key repeated in one mapping | Error yaml. at the second key’s line |
Anchors, aliases, merge keys (<<), explicit tags, a second document | Error yaml.; write the value out in full |
., ., a number too large to hold | Error yaml.; numbers are finite |
yes, no, on, off, unquoted dates, 1_000, 0b11 | Text |
007 and other integers with a leading zero | Text (the core schema would read 7) |
0x10, 0o17, 1e3 | Numbers |
~, null, an empty value | Null |
| Quoted and block scalars | Always text |
Text that is not YAML at all keeps its family’s code (frontmatter.yaml, block.yaml, style.yaml) with the parser’s line and column.