{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bitbybit-dev/json-schema/bitbybit-dev-health-response-schema.json",
  "title": "HealthResponse",
  "description": "Success envelope for health check",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bitbybit-dev-health-api-openapi.yml#/components/schemas/HealthResponse",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean",
      "const": true
    },
    "data": {
      "$ref": "#/$defs/HealthStatus"
    }
  },
  "required": [
    "ok",
    "data"
  ],
  "additionalProperties": false,
  "$defs": {
    "HealthStatus": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "ok",
            "degraded"
          ],
          "description": "Overall health status"
        },
        "timestamp": {
          "type": "string",
          "description": "ISO 8601 timestamp"
        }
      },
      "required": [
        "status",
        "timestamp"
      ],
      "additionalProperties": false,
      "description": "API health check result indicating overall system status"
    }
  }
}