{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/snowsure-ai/json-schema/snowsure-ai-snow-data-response-schema.json",
  "title": "SnowDataResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/snowsure-ai-openapi.json#/components/schemas/SnowDataResponse",
  "type": "object",
  "properties": {
    "meta": {
      "type": "object",
      "properties": {
        "source": {
          "type": "string"
        },
        "website": {
          "type": "string",
          "format": "uri"
        },
        "api": {
          "type": "string",
          "format": "uri"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "dateFormatted": {
          "type": "string"
        },
        "region": {
          "type": "string"
        },
        "regionName": {
          "type": "string"
        }
      }
    },
    "summary": {
      "type": "object",
      "properties": {
        "totalResorts": {
          "type": "integer"
        },
        "resortsWithFreshSnow24h": {
          "type": "integer"
        },
        "totalSnowfall24hCm": {
          "type": "number"
        },
        "averageSnowfall7dCm": {
          "type": "number"
        },
        "naturalLanguage": {
          "type": "string",
          "description": "Human-readable summary of current conditions"
        }
      }
    },
    "topBySnowSureScore": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "rank": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "snowSureScore": {
            "type": "integer"
          },
          "snowSureRating": {
            "type": "string"
          },
          "snowfall24hCm": {
            "type": "number"
          },
          "forecast14dCm": {
            "type": [
              "number",
              "null"
            ],
            "description": "Sum over the forecast horizon the caller is entitled to; equals the seven-day total when `forecastHorizonDays` is 7 (anonymous and free callers). Read `forecastHorizonDays` before calling this a 14-day total: the name is historical, and kept so existing consumers keep reading a number (SS-W-318, SS-W-1460). null when the resort has no forecast."
          },
          "forecastHorizonDays": {
            "type": "integer",
            "enum": [
              7,
              14
            ],
            "description": "How many forward days `forecast14dCm` covers for THIS caller: 14 for an entitled caller (SnowSure Pro, or a resort in a signed-in reader's My Mountains), 7 otherwise."
          }
        }
      }
    },
    "topBySnowfall7d": {
      "type": "array",
      "description": "Same row shape as `topBySnowSureScore`, ranked on the past seven days' snowfall. Each row's `forecast14dCm` covers `forecastHorizonDays`.",
      "items": {
        "type": "object"
      }
    },
    "topByForecast14d": {
      "type": "array",
      "description": "Same row shape as `topBySnowSureScore`, ranked on `forecast14dCm` as served to THIS caller: the seven-day total for an anonymous or free caller (`forecastHorizonDays: 7`), the fortnight for an entitled one (SnowSure Pro, or a resort in a signed-in reader's My Mountains). The key name is historical (SS-W-1460).",
      "items": {
        "type": "object"
      }
    },
    "regions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    }
  }
}