REPRODUCIBLE SAMPLE
YAML Sample File for Configuration Parser Tests
Test a small configuration-shaped mapping with two nested records. The expected values match our JSON fixture when parsed using the YAML 1.2 core schema.
Download and verify
- Bytes
- 167
- Media type
- application/yaml
- SHA-256
886834dca78d188c54dd9e57981c9296b8ad8998cd38f857b8bf050d098c6822- Creation
- Original, reproducible test fixture
What is included
- YAML 1.2 core-schema mapping and sequence
- Spaces for indentation; no tags, anchors or aliases
- Same parsed values as the downloadable JSON sample
Created for Format Odyssey and dedicated to the public domain under CC0 1.0. CC0 1.0 Universal.
Preview the sample
# Original configuration-shaped fixture
name: Demo inventory
active: true
code: "00123"
items:
- name: Widget
quantity: 3
- name: 'Cable "A"'
quantity: 12
Try it in your workflow
Test a configuration-shaped mapping with a sequence and explicit string quoting.
- Download the file and use YAML 1.2 core-schema parsing.
- Check indentation and the quoted code value.
- Compare the parsed values with the JSON sample linked in the format comparison.
Expected result
The parsed mapping matches the JSON sample, including code as a string and quantities as numbers.
What this fixture covers
YAML parser versions and schemas can differ. This fixture excludes custom tags, aliases and multiple documents.
Use it safely
Keep the checksum with the file when testing. The sample only exercises a small valid shape; it does not prove that an importer handles every variant or malicious input.