{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vigotime-com/json-schema/vigotime-com-health-response-schema.json",
  "title": "HealthResponse",
  "description": "Health check response.",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vigotime-com-openapi.json#/components/schemas/HealthResponse",
  "properties": {
    "build_time": {
      "default": "unknown",
      "title": "Build Time",
      "type": "string"
    },
    "build_version": {
      "default": "dev",
      "title": "Build Version",
      "type": "string"
    },
    "components": {
      "default": [],
      "items": {
        "$ref": "#/$defs/ComponentHealth"
      },
      "title": "Components",
      "type": "array"
    },
    "git_commit": {
      "default": "dev",
      "title": "Git Commit",
      "type": "string"
    },
    "service": {
      "title": "Service",
      "type": "string"
    },
    "status": {
      "$ref": "#/$defs/HealthStatus"
    },
    "timestamp": {
      "title": "Timestamp",
      "type": "string"
    },
    "version": {
      "title": "Version",
      "type": "string"
    }
  },
  "required": [
    "status",
    "service",
    "version",
    "timestamp"
  ],
  "type": "object",
  "$defs": {
    "ComponentHealth": {
      "description": "Health status of a component.",
      "properties": {
        "message": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Message"
        },
        "name": {
          "title": "Name",
          "type": "string"
        },
        "status": {
          "$ref": "#/$defs/HealthStatus"
        }
      },
      "required": [
        "name",
        "status"
      ],
      "title": "ComponentHealth",
      "type": "object"
    },
    "HealthStatus": {
      "description": "Health status values.",
      "enum": [
        "healthy",
        "unhealthy",
        "degraded"
      ],
      "title": "HealthStatus",
      "type": "string"
    }
  }
}