.yaml

4 claimants 4 primary 0 secondary shared primary (4)

SWH popularity

Distinct files in the full Software Heritage archive (2026-06-04 export), dated by first appearance, following Desmazières, Di Cosmo, Lorentz (MSR 2025). Case-aggregated. citation.

157.2M
total files
115.7M
first seen 2021–2025 (73.6%)
2022
median year (half its files since)

Case variants in archive: .yaml (157.2M), .YAML (13.5K), .Yaml (722), .yamL (19), .yaML (6), .YAml (2), .yAML (2), .yAml (2), .YAMl (1), .YaMl (1), .yAMl (1), .yaMl (1) — aggregated above.

Attribution status

This extension is attributed to MiniYAML; OASv2-yaml; OASv3-yaml; YAML as primary by 8 authoritative claims.

Authoritative sources: ✓ Linguist ✓ Pygments ✓ Wikidata · Q281876 ✗ Wikipedia · no claim

Disagree or have a correction? Open a labelling issue.

Claimants (9)

Languages that list .yaml among their extensions. Strength reflects whether the upstream source treated it as their primary extension.
LanguageSourceStrength
MiniYAMLlinguistprimary
MiniYAMLpygmentsprimary
OASv2-yamllinguistprimary
OASv2-yamlpygmentsprimary
OASv3-yamllinguistprimary
OASv3-yamlpygmentsprimary
YAMLpygmentsprimary
YAMLwikidataprimary
YAMLlinguistsecondary

Disambiguation rules (4)

Linguist heuristics that decide, by content, which language a .yaml file actually is.
RulePredictsKindPredicates (truncated)Measured on SWH
h/linguist/.yaml/0MiniYAMLpredicates[{"kind": "any", "regexes": ["^\\t+.*?[^\\s:].*?:"]}, {"kind": "not_any", "regexes": ["---"]}]
h/linguist/.yaml/1OASv2-yamlpredicates[{"kind": "any", "regexes": ["swagger:\\s?'?\"?2.[0-9.]+'?\"?"]}]
h/linguist/.yaml/2OASv3-yamlpredicates[{"kind": "any", "regexes": ["openapi:\\s?'?\"?3.[0-9.]+'?\"?"]}]
h/linguist/.yaml/3YAMLdefault[]

SWH-mined examples (0)

No archived examples for .yaml in our local mirror yet.

Need an archived example for this extension?
No verbatim file with extension .yaml in our local SWH mirror yet. Submit a sample-mining request and a maintainer will run swh_extension_mining.py against the live archive for this extension; samples land here once the run completes.
(or open the pre-filled issue directly)