{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://weverlabs.com/schemas/energyops-evidence-checklist.schema.json",
  "title": "EnergyOps Evidence Checklist",
  "type": "object",
  "required": [
    "object_type",
    "checklist_id",
    "requested_tool",
    "project_id",
    "items"
  ],
  "properties": {
    "object_type": {
      "const": "energyops_evidence_checklist"
    },
    "checklist_id": {
      "type": "string"
    },
    "requested_tool": {
      "const": "energyops"
    },
    "project_id": {
      "type": "string"
    },
    "readiness_status": {
      "type": "string"
    },
    "readiness_score": {
      "type": "number"
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "item_id",
          "name",
          "status"
        ],
        "properties": {
          "item_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "enum": [
              "received",
              "missing",
              "partial",
              "not_applicable"
            ]
          },
          "evidence_reference": {
            "type": "string"
          },
          "next_action": {
            "type": "string"
          }
        }
      }
    }
  }
}
