{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/pluggy/main/json-schema/pluggy-status-summary-schema.json",
  "title": "StatusSummary",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pluggy-status-api-openapi.yml#/components/schemas/StatusSummary",
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "op",
        "dg",
        "pt",
        "mj",
        "mn"
      ],
      "description": "Worst status across connectors, infrastructure and open incidents: op operational, dg degraded, pt partial outage, mj major outage, mn maintenance."
    },
    "labels": {
      "type": "object",
      "description": "Ready-to-render label for the status, keyed by locale.",
      "properties": {
        "pt": {
          "type": "string"
        },
        "es": {
          "type": "string"
        },
        "en": {
          "type": "string"
        }
      }
    },
    "openIncidents": {
      "type": "integer",
      "description": "Number of open incidents (maintenance windows excluded)."
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}