{
  "$ref": "#/definitions/Distribution",
  "definitions": {
    "Distribution": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "minLength": 1,
          "description": "What quantity the distribution is over. Canonical values: \"seats\", \"percents\". Should match the parent Estimate.type."
        },
        "values": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "x": {
                "type": "string",
                "minLength": 1,
                "description": "Bin label — exact value or range. Examples: \"10\" (exact), \"9-10\" (range), \"<5\" (open-ended)."
              },
              "value": {
                "type": "number",
                "description": "Probability mass or frequency for this bin. Typically a percentage (0–100) summing to ~100 across all bins, or a probability (0–1) summing to ~1."
              }
            },
            "required": [
              "x",
              "value"
            ],
            "additionalProperties": false,
            "description": "One bin of a probability or frequency distribution.\n\nLayer: aggregate (embedded in Distribution → Estimate → EstimateSnapshot)"
          },
          "minItems": 1,
          "description": "Ordered array of bins in ascending order of x."
        }
      },
      "required": [
        "type",
        "values"
      ],
      "additionalProperties": false,
      "description": "A probability or frequency distribution over discrete bins.\n\nLayer: aggregate (optional field on Estimate → EstimateSnapshot)\n\nProvides the full shape of uncertainty beyond the point estimate and interval."
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}