Sample YAML config file for testing parsers — free, CC0

YAML is the configuration language of CI systems, Kubernetes and countless tools, with a large specification whose features parsers implement differently or not at all. yaml/config-all-types.yaml gathers the ones that trip them.

It uses anchors and aliases to reuse values, and a merge key to combine mappings; it contains two documents in one stream; it has literal and folded block scalars, which differ in how they keep line breaks; and it includes every scalar type, among them .inf, .nan, dates and timestamps.

Each feature is a known source of disagreement. Some parsers reject merge keys, which YAML 1.2 no longer defines; some return only the first document; some turn dates into strings and others into date objects. Load the file, print what your parser produced, and compare it with what you expected.

Use it to test configuration loaders, linters and YAML-to-JSON converters. Related formats: JSON, TOML and INI.

1 file. The same list as JSON: https://loremfile.dev/yaml/index.json

YAML files
FileSizePropertiesDescription
config-all-types.yaml 1.1 KB utf-8, LF Anchors, aliases and a merge key, two documents in one stream, literal and folded block scalars, and every scalar type including .inf, .nan, dates and timestamps.
Snippets
curl -O https://loremfile.dev/yaml/config-all-types.yaml
<a href="https://loremfile.dev/yaml/config-all-types.yaml">download</a>

File names follow the naming grammar. Verify a download against sha256sums.txt.