{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cryptodataapi-com/json-schema/cryptodataapi-com-health-history-response-schema.json",
  "title": "HealthHistoryResponse",
  "description": "Health score history.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cryptodataapi-com-market-health-api-openapi.yml#/components/schemas/HealthHistoryResponse",
  "properties": {
    "history": {
      "items": {
        "$ref": "#/$defs/HealthHistoryEntry"
      },
      "type": "array",
      "title": "History"
    },
    "count": {
      "type": "integer",
      "title": "Count"
    }
  },
  "type": "object",
  "required": [
    "history",
    "count"
  ],
  "$defs": {
    "HealthHistoryEntry": {
      "properties": {
        "date": {
          "type": "string",
          "title": "Date"
        },
        "score": {
          "type": "integer",
          "title": "Score"
        },
        "long_term_score": {
          "type": "integer",
          "title": "Long Term Score"
        },
        "short_term_score": {
          "type": "integer",
          "title": "Short Term Score"
        },
        "components": {
          "additionalProperties": true,
          "type": "object",
          "title": "Components",
          "default": {}
        }
      },
      "type": "object",
      "required": [
        "date",
        "score",
        "long_term_score",
        "short_term_score"
      ],
      "title": "HealthHistoryEntry",
      "description": "Single entry in health score history."
    }
  }
}