{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/1password/refs/heads/main/json-schema/1password-connect-server-health-schema.json",
  "title": "ServerHealth",
  "description": "Represents the health status of the Connect server and its dependencies.",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the Connect server."
    },
    "version": {
      "type": "string",
      "description": "The version of the Connect server."
    },
    "dependencies": {
      "type": "array",
      "description": "The health status of server dependencies.",
      "items": {
        "type": "object",
        "properties": {
          "service": {
            "type": "string",
            "description": "The name of the dependency service."
          },
          "status": {
            "type": "string",
            "description": "The status of the dependency.",
            "enum": [
              "ACTIVE",
              "INACTIVE",
              "ERROR"
            ]
          },
          "message": {
            "type": "string",
            "description": "Additional information about the dependency status."
          }
        }
      }
    }
  }
}