{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rendex-dev/json-schema/rendex-dev-deep-health-response-schema.json",
  "title": "DeepHealthResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rendex-dev-health-api-openapi.yml#/components/schemas/DeepHealthResponse",
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "ok",
        "degraded"
      ]
    },
    "product": {
      "type": "string"
    },
    "version": {
      "type": "string"
    },
    "timestamp": {
      "type": "string",
      "format": "date-time"
    },
    "checks": {
      "type": "object",
      "properties": {
        "database": {
          "$ref": "#/$defs/DependencyCheck"
        },
        "billing": {
          "$ref": "#/$defs/DependencyCheck"
        }
      }
    }
  },
  "$defs": {
    "DependencyCheck": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "ok",
            "error"
          ]
        },
        "latencyMs": {
          "type": "integer"
        },
        "error": {
          "type": "string"
        }
      }
    }
  }
}