{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/networkdatalabs-com/json-schema/networkdatalabs-com-health-schema.json",
  "title": "Health",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/networkdatalabs-com-openapi.yml#/components/schemas/Health",
  "type": "object",
  "required": [
    "status",
    "mode",
    "data_updated"
  ],
  "properties": {
    "status": {
      "type": "string",
      "const": "ok"
    },
    "mode": {
      "type": "string",
      "enum": [
        "live",
        "degraded",
        "stub"
      ],
      "description": "`live` = all data loaded; `degraded` = partial; `stub` = no data loaded"
    },
    "data_updated": {
      "type": [
        "string",
        "null"
      ],
      "format": "date",
      "description": "Build date (UTC) of the geolocation/ASN data currently served; null in stub mode"
    },
    "traits_loaded": {
      "type": "boolean",
      "description": "True when every trait list (Tor, VPN, relay, hosting, mobile, satellite) is loaded"
    }
  }
}