{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/peakcam-io/json-schema/peakcam-io-resort-schema.json",
  "title": "Resort",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/peakcam-io-openapi.json#/components/schemas/Resort",
  "type": "object",
  "properties": {
    "slug": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "canonicalUrl": {
      "type": "string",
      "description": "The resort's PeakCam page. Cite this."
    },
    "apiUrl": {
      "type": "string"
    },
    "location": {
      "$ref": "#/$defs/Location"
    },
    "profile": {
      "$ref": "#/$defs/ResortProfile"
    },
    "snow": {
      "anyOf": [
        {
          "$ref": "#/$defs/Snow"
        },
        {
          "type": "null"
        }
      ],
      "description": "Null when the resort has never had a snow report."
    },
    "season": {
      "$ref": "#/$defs/Season"
    },
    "cams": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Cam"
      }
    },
    "stations": {
      "description": "Observation stations serving the resort, once the station layer is live.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/ObservationStation"
      }
    },
    "measuredNow": {
      "description": "Latest observation per station, once the station layer is live.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/MeasuredNow"
      }
    },
    "forecast": {
      "description": "Headline numbers from the blended 14-day forecast (summit point when one exists). Null when no run is current; absent on list and compare rows. The full daily blend and every model run are at `/resorts/{slug}/forecast`.",
      "anyOf": [
        {
          "$ref": "#/$defs/ForecastSummary"
        },
        {
          "type": "null"
        }
      ]
    },
    "forecastScores": {
      "description": "Per-model verification at this resort over 90 days, ranked; empty until the scorer has measured days. Detail at `/resorts/{slug}/forecast-accuracy`.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/ForecastScore"
      }
    },
    "score": {
      "description": "Today's 0–100 Snow Score with components (P7). Null when the scorer has not written a row at most 3 days old; absent only when the score table is not served.",
      "anyOf": [
        {
          "$ref": "#/$defs/ResortScore"
        },
        {
          "type": "null"
        }
      ]
    },
    "websiteUrl": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "attribution": {
      "type": "string"
    },
    "license": {
      "type": "string",
      "description": "URL of the terms that govern reuse."
    },
    "updatedAt": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Newest instant among the snow report and cam checks/captures."
    }
  },
  "required": [
    "slug",
    "name",
    "canonicalUrl",
    "apiUrl",
    "location",
    "profile",
    "snow",
    "season",
    "cams",
    "websiteUrl",
    "attribution",
    "license",
    "updatedAt"
  ],
  "additionalProperties": false,
  "$defs": {
    "Cam": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Stable cam id (UUID)."
        },
        "name": {
          "type": "string"
        },
        "elevation": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Operator-stated elevation label as published, e.g. `11,000 ft`."
        },
        "live": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "description": "True when the last health check succeeded, false when the feed is failing or auto-disabled, null when PeakCam has never checked it. Health, not proof of a live broadcast."
        },
        "lastCheckedAt": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "stillUrl": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "A still image for the cam: the operator's own snapshot when it publishes one, else PeakCam's last captured frame. Null for players with no still."
        },
        "capturedAt": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "When `stillUrl` was captured by PeakCam. Null for operator-published stills, whose age PeakCam does not know."
        },
        "embedType": {
          "type": "string",
          "enum": [
            "youtube",
            "iframe",
            "image",
            "link"
          ]
        },
        "pageUrl": {
          "type": "string",
          "description": "The PeakCam page that plays this cam."
        },
        "sourceUrl": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "The operator's stream or page. Attribution and rights belong to the operator."
        },
        "kind": {
          "anyOf": [
            {
              "$ref": "#/$defs/CamKind"
            },
            {
              "type": "null"
            }
          ],
          "description": "What the cam looks at. Null when not classified."
        },
        "credit": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Attribution line to show with the frame. Null means credit the resort."
        },
        "sourceTermsUrl": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "The operator's terms governing reuse of this feed, when known."
        },
        "timelapses": {
          "description": "Rendered clips, once PeakCam renders them for this cam.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/CamTimelapse"
          }
        }
      },
      "required": [
        "id",
        "name",
        "elevation",
        "live",
        "lastCheckedAt",
        "stillUrl",
        "capturedAt",
        "embedType",
        "pageUrl",
        "sourceUrl",
        "kind",
        "credit",
        "sourceTermsUrl"
      ],
      "additionalProperties": false
    },
    "CamKind": {
      "type": "string",
      "enum": [
        "summit",
        "mid",
        "base",
        "snow-stake",
        "village",
        "approach"
      ]
    },
    "CamTimelapse": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "window": {
          "type": "string",
          "description": "Which clip: `24h` (rolling day, replaced every render), `storm` (one storm, see `stormDate`), or another label."
        },
        "url": {
          "type": "string",
          "description": "Public MP4 URL (H.264, 7 fps, 720p max, at most 3 MB). Link it; never inline it."
        },
        "posterUrl": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Public JPEG of the clip's last frame, the <video> poster. Null for clips rendered before the poster existed."
        },
        "frames": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ],
          "description": "Archived frames in the clip; at 7 fps the duration is frames / 7 seconds."
        },
        "startsAt": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Capture time of the first frame (ISO-8601)."
        },
        "endsAt": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Capture time of the last frame (ISO-8601)."
        },
        "bytes": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ],
          "description": "Size of the MP4."
        },
        "renderedAt": {
          "type": "string",
          "description": "ISO-8601 instant the clip was rendered."
        },
        "stormDate": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "YYYY-MM-DD of the storm a `storm` clip covers."
        }
      },
      "required": [
        "id",
        "window",
        "url",
        "posterUrl",
        "frames",
        "startsAt",
        "endsAt",
        "bytes",
        "renderedAt",
        "stormDate"
      ],
      "additionalProperties": false
    },
    "ForecastPeak": {
      "type": "object",
      "properties": {
        "date": {
          "type": "string",
          "description": "The day with the most blended snowfall."
        },
        "in": {
          "type": "number"
        },
        "cm": {
          "type": "number"
        },
        "windowDays": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991,
          "description": "Consecutive days around the peak with at least 1 cm (the storm window)."
        }
      },
      "required": [
        "date",
        "in",
        "cm",
        "windowDays"
      ],
      "additionalProperties": false
    },
    "ForecastScore": {
      "type": "object",
      "properties": {
        "model": {
          "type": "string"
        },
        "periodDays": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991,
          "description": "Trailing verification window, days."
        },
        "day1Mae": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "description": "Mean absolute error of the day-1 snowfall forecast, cm."
        },
        "day3Mae": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "day7Mae": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "samples": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "biasRatio": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "description": "Sum(forecast) / sum(observed); above 1 means the model over-forecasts snow."
        },
        "computedAt": {
          "type": "string"
        },
        "rank": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ],
          "description": "1 = lowest day-1 MAE among the models scored at this resort (the blend is ranked too). Null before the first scoring run."
        }
      },
      "required": [
        "model",
        "periodDays",
        "day1Mae",
        "day3Mae",
        "day7Mae",
        "samples",
        "biasRatio",
        "computedAt",
        "rank"
      ],
      "additionalProperties": false
    },
    "ForecastSummary": {
      "type": "object",
      "properties": {
        "point": {
          "type": "string",
          "enum": [
            "summit",
            "base"
          ],
          "description": "The elevation the summary is for: summit when the resort has a summit point, else base."
        },
        "issuedAt": {
          "type": "string",
          "description": "Newest model issue instant among the runs blended."
        },
        "modelCount": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991,
          "description": "Models contributing to the first day."
        },
        "models": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Every model id that contributed to any day."
        },
        "next48hIn": {
          "type": "number"
        },
        "next48hCm": {
          "type": "number"
        },
        "total7dIn": {
          "type": "number"
        },
        "total7dCm": {
          "type": "number"
        },
        "total14dIn": {
          "type": "number"
        },
        "total14dCm": {
          "type": "number"
        },
        "peak": {
          "anyOf": [
            {
              "$ref": "#/$defs/ForecastPeak"
            },
            {
              "type": "null"
            }
          ],
          "description": "Null when no day has any blended snow."
        }
      },
      "required": [
        "point",
        "issuedAt",
        "modelCount",
        "models",
        "next48hIn",
        "next48hCm",
        "total7dIn",
        "total7dCm",
        "total14dIn",
        "total14dCm",
        "peak"
      ],
      "additionalProperties": false
    },
    "Location": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "description": "US state / CA province code, or the country name for Andes resorts."
        },
        "region": {
          "type": "string"
        },
        "country": {
          "type": "string",
          "description": "ISO 3166-1 alpha-2."
        },
        "lat": {
          "type": "number"
        },
        "lon": {
          "type": "number"
        },
        "baseElevationFt": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "summitElevationFt": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "state",
        "region",
        "country",
        "lat",
        "lon",
        "baseElevationFt",
        "summitElevationFt"
      ],
      "additionalProperties": false
    },
    "MeasuredNow": {
      "type": "object",
      "properties": {
        "stationId": {
          "type": "string",
          "description": "PeakCam station id; joins `stations[]`."
        },
        "role": {
          "type": "string",
          "enum": [
            "summit",
            "mid",
            "base",
            "approach"
          ],
          "description": "summit / mid / base by the station's elevation against the resort's vertical."
        },
        "source": {
          "$ref": "#/$defs/StationSource"
        },
        "sourceId": {
          "type": "string",
          "description": "The provider's own station id, e.g. `AMB`, `1308:UT:SNTL`, `USC00420072`."
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "elevationFt": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "description": "Station elevation. Every value below describes this elevation."
        },
        "distanceKm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "description": "Great-circle distance from the resort's coordinates."
        },
        "observedAt": {
          "type": "string",
          "description": "ISO-8601 instant of the observation; a daily value is stamped at the end of its UTC day."
        },
        "ageMinutes": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991,
          "description": "Minutes between `observedAt` and `generatedAt`. Daily sources read 1,440 or more; hourly sources under 120 when live."
        },
        "snowDepthIn": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "sweIn": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "newSnowIn": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "description": "New snow over the provider's own period (24 h for daily sources), inches. Null for hourly sources, which do not measure it."
        },
        "tempF": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "windMph": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "attribution": {
          "type": "string",
          "description": "The credit line the provider's terms ask for."
        }
      },
      "required": [
        "stationId",
        "role",
        "source",
        "sourceId",
        "name",
        "elevationFt",
        "distanceKm",
        "observedAt",
        "ageMinutes",
        "snowDepthIn",
        "sweIn",
        "newSnowIn",
        "tempF",
        "windMph",
        "attribution"
      ],
      "additionalProperties": false
    },
    "Measurement": {
      "type": "object",
      "properties": {
        "value": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "description": "Null when not reported or suppressed as unreliable."
        },
        "unit": {
          "type": "string",
          "enum": [
            "in",
            "percent"
          ]
        },
        "source": {
          "anyOf": [
            {
              "$ref": "#/$defs/MeasurementSource"
            },
            {
              "type": "null"
            }
          ]
        },
        "measuredAt": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "ISO-8601 instant the report carrying this value was written."
        },
        "station": {
          "description": "Present only for station-sourced values.",
          "$ref": "#/$defs/Station"
        }
      },
      "required": [
        "value",
        "unit",
        "source",
        "measuredAt"
      ],
      "additionalProperties": false
    },
    "MeasurementSource": {
      "type": "string",
      "enum": [
        "snotel",
        "open_meteo",
        "pipeline",
        "manual",
        "resort"
      ]
    },
    "ObservationStation": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "PeakCam station id (UUID)."
        },
        "source": {
          "type": "string",
          "description": "Provider, e.g. `nrcs`, `nws`, `eccc`, `udot`."
        },
        "sourceId": {
          "type": "string",
          "description": "The provider's own identifier (SNOTEL triplet, ICAO code, GHCN id)."
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "kind": {
          "$ref": "#/$defs/StationKind"
        },
        "role": {
          "type": "string",
          "enum": [
            "summit",
            "mid",
            "base",
            "approach"
          ],
          "description": "Where the station sits relative to the resort."
        },
        "lat": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "lon": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "elevationFt": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "distanceKm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "description": "Great-circle distance from the resort's coordinates."
        },
        "rank": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991,
          "description": "1 = the preferred station for its role."
        }
      },
      "required": [
        "id",
        "source",
        "sourceId",
        "name",
        "kind",
        "role",
        "lat",
        "lon",
        "elevationFt",
        "distanceKm",
        "rank"
      ],
      "additionalProperties": false
    },
    "ResortProfile": {
      "type": "object",
      "properties": {
        "runsTotal": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "liftsTotal": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "skiableAcres": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "verticalFt": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "annualSnowfallIn": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "description": "Operator-stated average annual snowfall, inches."
        },
        "longestRunMi": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "descriptionSource": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "operator",
                "generated",
                "editor"
              ]
            },
            {
              "type": "null"
            }
          ],
          "description": "`operator`: the resort's own copy. `generated`: a model-written draft, labelled as such on the page. `editor`: hand-written by PeakCam."
        },
        "trailMapUrl": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "The operator's trail map (linked, never copied)."
        },
        "wikidataId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "aliases": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Other names the resort is known by, e.g. `A-Basin`."
        },
        "passes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ikon",
              "epic",
              "mountain-collective",
              "indy",
              "power"
            ]
          },
          "description": "Multi-resort passes the resort is on."
        }
      },
      "required": [
        "runsTotal",
        "liftsTotal",
        "skiableAcres",
        "verticalFt",
        "annualSnowfallIn",
        "longestRunMi",
        "description",
        "descriptionSource",
        "trailMapUrl",
        "wikidataId",
        "aliases",
        "passes"
      ],
      "additionalProperties": false
    },
    "ResortScore": {
      "type": "object",
      "properties": {
        "date": {
          "type": "string",
          "description": "YYYY-MM-DD the score is for (Mountain-time day of the scoring run)."
        },
        "score": {
          "type": "integer",
          "minimum": 0,
          "maximum": 100
        },
        "rating": {
          "type": "string",
          "enum": [
            "great",
            "good",
            "fair",
            "poor"
          ],
          "description": "The score's four-tier label: great ≥ 75, good ≥ 55, fair ≥ 35, else poor."
        },
        "tagline": {
          "type": "string",
          "description": "Dated sentence to quote: the score, its rating and the components strongest first."
        },
        "components": {
          "$ref": "#/$defs/ScoreComponents"
        },
        "scoredBy": {
          "type": "string",
          "const": "algorithmic",
          "description": "Always `algorithmic`: a fixed function of measured and modelled inputs, never an editorial call."
        },
        "version": {
          "type": "string",
          "description": "Formula version, e.g. `score-v1`; a change re-scores the history."
        }
      },
      "required": [
        "date",
        "score",
        "rating",
        "tagline",
        "components",
        "scoredBy",
        "version"
      ],
      "additionalProperties": false
    },
    "ScoreComponent": {
      "type": "object",
      "properties": {
        "points": {
          "type": "number",
          "minimum": 0,
          "description": "Points earned, one decimal."
        },
        "max": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991,
          "description": "The component's weight; the five maximums add to 100."
        },
        "basis": {
          "type": "string",
          "description": "One line saying what the points rest on, quotable as is."
        },
        "source": {
          "$ref": "#/$defs/ScoreSource"
        }
      },
      "required": [
        "points",
        "max",
        "basis",
        "source"
      ],
      "additionalProperties": false
    },
    "ScoreComponents": {
      "type": "object",
      "properties": {
        "depthVsNormal": {
          "description": "30: snowpack against the station's 1991–2020 median (SWE); without a normal, base depth on a fixed scale capped at 27.",
          "$ref": "#/$defs/ScoreComponent"
        },
        "recentSnow7d": {
          "description": "25: measured or modelled new snow over the last 7 days (24 in is full marks).",
          "$ref": "#/$defs/ScoreComponent"
        },
        "forecast7d": {
          "description": "20: the blended next-7-day forecast total (20 in is full marks).",
          "$ref": "#/$defs/ScoreComponent"
        },
        "snowQuality": {
          "description": "15: days since the last snow day × the 3-day high temperature × the engine's surface tags.",
          "$ref": "#/$defs/ScoreComponent"
        },
        "operatingStatus": {
          "description": "10: OPEN full, PRE_SEASON and CLOSED_TODAY half, OFF_SEASON and UNKNOWN none.",
          "$ref": "#/$defs/ScoreComponent"
        }
      },
      "required": [
        "depthVsNormal",
        "recentSnow7d",
        "forecast7d",
        "snowQuality",
        "operatingStatus"
      ],
      "additionalProperties": false
    },
    "ScoreSource": {
      "type": "string",
      "enum": [
        "snotel",
        "model",
        "operator",
        "profile",
        "derived",
        "none"
      ]
    },
    "Season": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "open",
            "closed",
            "unknown"
          ],
          "description": "`open` once a resort-confirmed opening date has passed (or a Southern-hemisphere season is still inside its closing date); `closed` before a confirmed opening date or after a closing date; `unknown` when PeakCam has only a projection or no date."
        },
        "openDate": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "YYYY-MM-DD opening date for the current season, confirmed or projected."
        },
        "openDateKind": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "confirmed",
                "projected"
              ]
            },
            {
              "type": "null"
            }
          ],
          "description": "Whether `openDate` was announced by the resort or is a third-party projection."
        },
        "closingDate": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "YYYY-MM-DD; mainly Southern-hemisphere rows."
        },
        "seasonLabel": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "The season the dates belong to, e.g. `2026-27`."
        },
        "hemisphere": {
          "type": "string",
          "enum": [
            "north",
            "south"
          ]
        },
        "asOf": {
          "type": "string",
          "description": "The YYYY-MM-DD day (US Pacific) the status was evaluated for."
        },
        "source": {
          "type": "string",
          "const": "resort_openings"
        },
        "sourceUrl": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Where the date was sourced from, when recorded."
        }
      },
      "required": [
        "status",
        "openDate",
        "openDateKind",
        "closingDate",
        "seasonLabel",
        "hemisphere",
        "asOf",
        "source",
        "sourceUrl"
      ],
      "additionalProperties": false
    },
    "Snow": {
      "type": "object",
      "properties": {
        "baseDepth": {
          "description": "Snow depth at the station or model point, inches.",
          "$ref": "#/$defs/Measurement"
        },
        "newSnow24h": {
          "description": "New snow in the last 24 hours, inches.",
          "$ref": "#/$defs/Measurement"
        },
        "newSnow48h": {
          "description": "New snow in the last 48 hours, inches.",
          "$ref": "#/$defs/Measurement"
        },
        "swe": {
          "description": "Snow water equivalent, inches.",
          "$ref": "#/$defs/Measurement"
        },
        "pctOfNormal": {
          "description": "SWE as a percentage of the station's 1991–2020 median for this day of the water year. Null when there is no station, when SWE is under 2 in, or outside the 10–300 % band where the ratio is meaningful.",
          "$ref": "#/$defs/Measurement"
        },
        "trend7d": {
          "$ref": "#/$defs/TrendMeasurement"
        },
        "outlook": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "more_snow",
                "stable",
                "warming",
                "melt_risk"
              ]
            },
            {
              "type": "null"
            }
          ],
          "description": "Derived short-term outlook from the conditions engine."
        },
        "rating": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "great",
                "good",
                "fair",
                "poor"
              ]
            },
            {
              "type": "null"
            }
          ],
          "description": "PeakCam's overall conditions rating."
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Condition tags from the conditions engine, e.g. `powder`."
        },
        "narrative": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "One-paragraph plain-language conditions summary, when the report carries one."
        },
        "reportedAt": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "ISO-8601 instant of the latest report."
        },
        "source": {
          "anyOf": [
            {
              "$ref": "#/$defs/MeasurementSource"
            },
            {
              "type": "null"
            }
          ],
          "description": "Source of the latest report as a whole (the per-field `source` values agree with it today)."
        }
      },
      "required": [
        "baseDepth",
        "newSnow24h",
        "newSnow48h",
        "swe",
        "pctOfNormal",
        "trend7d",
        "outlook",
        "rating",
        "tags",
        "narrative",
        "reportedAt",
        "source"
      ],
      "additionalProperties": false
    },
    "Station": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "NRCS station triplet, e.g. `602:CO:SNTL`."
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "NRCS station name."
        },
        "elevationFt": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "description": "Station elevation in feet. Measurements describe this elevation, not the resort's summit."
        }
      },
      "required": [
        "id",
        "name",
        "elevationFt"
      ],
      "additionalProperties": false
    },
    "StationKind": {
      "type": "string",
      "enum": [
        "snotel",
        "scan",
        "nws_obs",
        "metar",
        "ghcn",
        "bc_asws",
        "eccc",
        "road_cam"
      ]
    },
    "StationSource": {
      "type": "string",
      "enum": [
        "snotel",
        "ghcn",
        "nws",
        "bc_asws",
        "eccc"
      ]
    },
    "TrendMeasurement": {
      "type": "object",
      "properties": {
        "value": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "rising",
                "falling",
                "stable"
              ]
            },
            {
              "type": "null"
            }
          ],
          "description": "Direction of snow-water-equivalent change over the last 7 days."
        },
        "source": {
          "anyOf": [
            {
              "$ref": "#/$defs/MeasurementSource"
            },
            {
              "type": "null"
            }
          ]
        },
        "measuredAt": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "station": {
          "$ref": "#/$defs/Station"
        }
      },
      "required": [
        "value",
        "source",
        "measuredAt"
      ],
      "additionalProperties": false
    }
  }
}