{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://weverlabs.com/schemas/energyops-interconnection-readiness-check.schema.json",
  "title": "EnergyOps Interconnection Readiness Check",
  "type": "object",
  "required": [
    "check_id",
    "category",
    "status",
    "source_reference",
    "finding",
    "next_action"
  ],
  "properties": {
    "check_id": {
      "type": "string"
    },
    "category": {
      "type": "string",
      "enum": [
        "application_record",
        "single_line_diagram",
        "site_control",
        "study_or_milestone",
        "permit_or_approval",
        "fee_or_payment",
        "utility_correspondence",
        "missing_item_note"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "complete",
        "missing",
        "stale",
        "ambiguous",
        "exception",
        "operator_review"
      ]
    },
    "source_reference": {
      "type": "string"
    },
    "finding": {
      "type": "string"
    },
    "next_action": {
      "type": "string"
    },
    "severity": {
      "type": "string",
      "enum": [
        "low",
        "medium",
        "high",
        "blocking"
      ]
    }
  }
}
