{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.robertduraniv.com/schemas/assurance-pack-v1.json",
  "title": "R/IV enterprise assurance pack v1",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "pack_id",
    "organization_id",
    "scope",
    "report_refs",
    "evidence_manifest",
    "provenance_refs",
    "created_at",
    "manifest_hash"
  ],
  "properties": {
    "pack_id": {
      "type": "string"
    },
    "organization_id": {
      "type": "string"
    },
    "workspace_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "scope": {
      "type": "string"
    },
    "report_refs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "evidence_manifest": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "provenance_refs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "review_refs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "manifest_hash": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "limitations": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}