{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/url2md-io/json-schema/url2md-io-health-schema.json",
  "title": "Health",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/url2md-io-openapi.json#/components/schemas/Health",
  "type": "object",
  "required": [
    "ok",
    "service",
    "version",
    "checkedAt",
    "checks"
  ],
  "properties": {
    "ok": {
      "type": "boolean",
      "description": "True only when every check is ok. An unconfirmed check is not ok."
    },
    "service": {
      "type": "string"
    },
    "version": {
      "type": "string"
    },
    "checkedAt": {
      "type": "string",
      "format": "date-time"
    },
    "checks": {
      "type": "object",
      "description": "One entry per dependency. Keys: config, ledgerKv, passthrough, facilitator, browser, ai, and for the hosted MCP connector oauthKv, github, oauthState, mcpLimits, testLogin (each ok and saying so where the connector is off).",
      "additionalProperties": {
        "type": "object",
        "required": [
          "status",
          "detail"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "fail",
              "unknown"
            ]
          },
          "detail": {
            "type": "string",
            "description": "One sentence saying what was checked and what came back. Never a configured value."
          }
        }
      }
    }
  }
}