JSON Schema format guide
Example JSON Schema
A JSON Schema (draft 2020-12) for the users, projects and tasks dataset. Use it to test a schema validator, or to see every field the sample files contain before you write assertions. The file is 6.0 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/schema+json; charset=utf-8
Use it
Request an asset
Browser
const response = await fetch("/v1/schemas/dataset.schema.json");
const payload = await response.json();curl
curl -fsS https://payloads.mochavi.com/v1/schemas/dataset.schema.jsonPython
from urllib.request import urlopen
with urlopen("https://payloads.mochavi.com/v1/schemas/dataset.schema.json") as response:
payload = response.read()Published files
1 stable URL
| Path | Media type | Size |
|---|---|---|
/v1/schemas/dataset.schema.json | application/schema+json; charset=utf-8 | 6.0 KB |
Related guides: Deterministic API fixtures, For coding agents.