For developers

Contract test fixtures

A bundle of small valid example payloads (real records) for each Warconomy contract type, plus clearly-marked invalid examples for negative validator testing. Validate your consumer against both before relying on the data.

static reference · data June 5, 2026

Use these fixtures to test a consumer or validator. The valid fixtures are real records drawn from the dataset — one per contract type (observation, source, provenance, version diff, graph edge, record history). The invalid fixtures are deliberately broken copies, each flagged __invalid with a __reason, so you can confirm your validator rejects bad input. The invalid fixtures are never real data.

  • 6 valid fixtures · 3 invalid fixtures.
  • Valid = real records; invalid = flagged broken copies for negative tests.
  • Machine-readable at /developers/fixtures/data.json.

Valid fixtures

  • observation
  • source
  • provenance
  • versionDiff
  • graphEdge
  • recordHistory

Invalid fixtures (negative tests)

  • observationMissingSourceIdMissing required 'sourceId' — every observation must link a source.
  • sourceMissingUrlMissing required 'url' — every source must have a resolvable URL.
  • observationBadDataModedataMode 'realtime' is not in the enum (live|sample).

Valid fixtures are real records drawn from the dataset; invalid fixtures are deliberately broken copies flagged __invalid for negative validator testing — they are not real data. Schemas: /datasets/conflict-economic-impact/schema.json. Machine-readable: fixtures/data.json · validate against the types and schemas.

Related Warconomy pages