YAML format guide
Sample YAML files
Small sample YAML files with strings, numbers, booleans, nulls, nested maps and lists. Use them to test YAML loaders and config parsers against known values. Pick a whole collection (3 users, 2 projects or 3 tasks) or a single record. The 11 files range from 131 B to 1.2 KB.
No account or API key is needed. A published v1 file never changes, its SHA-256 is listed in the manifest, and the data is CC0, so you can also commit a copy to your own repository.
application/yaml; charset=utf-8
Use it
Request an asset
Browser
const response = await fetch("/v1/projects.yaml");
const payload = await response.text();curl
curl -fsS https://payloads.mochavi.com/v1/projects.yamlPython
from urllib.request import urlopen
with urlopen("https://payloads.mochavi.com/v1/projects.yaml") as response:
payload = response.read()Published files
11 stable URLs
| Path | Media type | Size |
|---|---|---|
/v1/projects.yaml | application/yaml; charset=utf-8 | 529 B |
/v1/projects/101.yaml | application/yaml; charset=utf-8 | 279 B |
/v1/projects/102.yaml | application/yaml; charset=utf-8 | 194 B |
/v1/tasks.yaml | application/yaml; charset=utf-8 | 499 B |
/v1/tasks/1001.yaml | application/yaml; charset=utf-8 | 156 B |
/v1/tasks/1002.yaml | application/yaml; charset=utf-8 | 131 B |
/v1/tasks/1003.yaml | application/yaml; charset=utf-8 | 158 B |
/v1/users.yaml | application/yaml; charset=utf-8 | 1.2 KB |
/v1/users/1.yaml | application/yaml; charset=utf-8 | 407 B |
/v1/users/2.yaml | application/yaml; charset=utf-8 | 341 B |
/v1/users/3.yaml | application/yaml; charset=utf-8 | 350 B |
Validate the canonical shape with the dataset schema.
Related guides: Cross-format test data, For coding agents.