{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bernstein-run/json-schema/bernstein-run-health-deps-response-schema.json",
  "title": "HealthDepsResponse",
  "description": "Full health response with dependency checks.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bernstein-run-health-api-openapi.yml#/components/schemas/HealthDepsResponse",
  "properties": {
    "status": {
      "type": "string",
      "title": "Status"
    },
    "uptime_s": {
      "type": "number",
      "title": "Uptime S"
    },
    "timestamp": {
      "type": "number",
      "title": "Timestamp"
    },
    "dependencies": {
      "items": {
        "$ref": "#/$defs/DependencyStatus"
      },
      "type": "array",
      "title": "Dependencies"
    }
  },
  "type": "object",
  "required": [
    "status",
    "uptime_s",
    "timestamp"
  ],
  "$defs": {
    "DependencyStatus": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name"
        },
        "status": {
          "type": "string",
          "title": "Status"
        },
        "latency_ms": {
          "type": "number",
          "title": "Latency Ms",
          "default": 0
        },
        "detail": {
          "type": "string",
          "title": "Detail",
          "default": ""
        }
      },
      "type": "object",
      "required": [
        "name",
        "status"
      ],
      "title": "DependencyStatus",
      "description": "Status of a single dependency."
    }
  }
}