{
  "$defs": {
    "CampaignCell": {
      "additionalProperties": false,
      "properties": {
        "fault": {
          "title": "Fault",
          "type": "string"
        },
        "first_violation": {
          "additionalProperties": {
            "type": "number"
          },
          "default": {},
          "title": "First Violation",
          "type": "object"
        },
        "run": {
          "pattern": "^sha256:[0-9a-f]{64}$",
          "title": "Run",
          "type": "string"
        },
        "scenario": {
          "pattern": "^sha256:[0-9a-f]{64}$",
          "title": "Scenario",
          "type": "string"
        },
        "status": {
          "title": "Status",
          "type": "string"
        },
        "variant": {
          "title": "Variant",
          "type": "string"
        },
        "verdicts": {
          "additionalProperties": {
            "enum": [
              "holds",
              "violated",
              "not_evaluated"
            ],
            "type": "string"
          },
          "title": "Verdicts",
          "type": "object"
        }
      },
      "required": [
        "variant",
        "fault",
        "scenario",
        "run",
        "status",
        "verdicts"
      ],
      "title": "CampaignCell",
      "type": "object"
    }
  },
  "$id": "mokili.campaign-run/1",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "What a campaign found: one cell per variant and fault. Written by Mokili.",
  "properties": {
    "campaign": {
      "pattern": "^sha256:[0-9a-f]{64}$",
      "title": "Campaign",
      "type": "string"
    },
    "cells": {
      "items": {
        "$ref": "#/$defs/CampaignCell"
      },
      "title": "Cells",
      "type": "array"
    },
    "created_at": {
      "title": "Created At",
      "type": "string"
    },
    "schema": {
      "const": "mokili.campaign-run/1",
      "title": "Schema",
      "type": "string"
    }
  },
  "required": [
    "schema",
    "created_at",
    "campaign",
    "cells"
  ],
  "title": "CampaignRun",
  "type": "object"
}
