{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/farmdash/json-schema/farmdash-chain-breakdown-response-schema.json",
  "title": "ChainBreakdownResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/farmdash-intelligence-api-openapi.yml#/components/schemas/ChainBreakdownResponse",
  "type": "object",
  "required": [
    "tier",
    "data"
  ],
  "properties": {
    "tier": {
      "$ref": "#/$defs/Tier"
    },
    "status": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "direct_upgrade_url": {
      "type": "string",
      "format": "uri"
    },
    "data": {
      "type": "object",
      "properties": {
        "chains": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ChainBreakdownItem"
          }
        },
        "summary": {
          "$ref": "#/$defs/ChainBreakdownSummary"
        }
      }
    }
  },
  "$defs": {
    "ChainBreakdownItem": {
      "type": "object",
      "properties": {
        "chain": {
          "type": "string"
        },
        "protocol_count": {
          "oneOf": [
            {
              "type": "integer"
            },
            {
              "type": "string"
            }
          ]
        },
        "pct_of_total": {
          "oneOf": [
            {
              "type": "number"
            },
            {
              "type": "string"
            }
          ]
        },
        "confirmed_airdrops": {
          "oneOf": [
            {
              "type": "integer"
            },
            {
              "type": "string"
            }
          ]
        },
        "points_programs": {
          "oneOf": [
            {
              "type": "integer"
            },
            {
              "type": "string"
            }
          ]
        },
        "categories": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "ChainBreakdownSummary": {
      "type": "object",
      "properties": {
        "total_chains": {
          "type": "integer"
        },
        "total_protocols": {
          "oneOf": [
            {
              "type": "integer"
            },
            {
              "type": "string"
            }
          ]
        },
        "dominant_chain": {
          "type": [
            "string",
            "null"
          ]
        },
        "dominant_chain_pct": {
          "oneOf": [
            {
              "type": "number"
            },
            {
              "type": "string"
            }
          ]
        }
      }
    },
    "Tier": {
      "type": "string",
      "enum": [
        "scout",
        "pioneer",
        "syndicate"
      ]
    }
  }
}