{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adanos-market-sentiment-api/json-schema/adanos-market-sentiment-api-root-health-response-schema.json",
  "title": "RootHealthResponse",
  "description": "Root API health status aggregated across platforms.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adanos-market-sentiment-api-health-check-api-openapi.yml#/components/schemas/RootHealthResponse",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "healthy",
        "unhealthy"
      ],
      "title": "Status",
      "description": "Aggregated root health status"
    },
    "service": {
      "type": "string",
      "title": "Service",
      "description": "Root service identifier",
      "default": "adanos-api"
    },
    "version": {
      "type": "string",
      "title": "Version",
      "description": "Service version"
    },
    "summary": {
      "$ref": "#/$defs/RootHealthSummary",
      "description": "Aggregated health counts"
    },
    "services": {
      "additionalProperties": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "object",
      "title": "Services",
      "description": "Per-platform health payloads keyed by service identifier"
    }
  },
  "type": "object",
  "required": [
    "status",
    "version",
    "summary",
    "services"
  ],
  "$defs": {
    "RootHealthSummary": {
      "properties": {
        "total": {
          "type": "integer",
          "title": "Total",
          "description": "Number of platform health checks"
        },
        "healthy": {
          "type": "integer",
          "title": "Healthy",
          "description": "Number of checks that reported healthy"
        },
        "unhealthy": {
          "type": "integer",
          "title": "Unhealthy",
          "description": "Number of checks that reported unhealthy or timed out"
        },
        "unhealthy_services": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Unhealthy Services",
          "description": "Service identifiers that reported unhealthy or timed out"
        }
      },
      "type": "object",
      "required": [
        "total",
        "healthy",
        "unhealthy",
        "unhealthy_services"
      ],
      "title": "RootHealthSummary",
      "description": "Aggregated root health summary."
    }
  }
}