{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "OverlayFeatureRecord",
  "type": "object",
  "required": [
    "symbol",
    "as_of_ts",
    "overlay_score",
    "overlay_confidence",
    "source_presence_mask",
    "feature_version"
  ],
  "properties": {
    "symbol": {"type": "string"},
    "as_of_ts": {"type": "string", "format": "date-time"},
    "headline_burst_z": {"type": ["number", "null"]},
    "youtube_influence_z": {"type": ["number", "null"]},
    "wiki_attention_z": {"type": ["number", "null"]},
    "theme_heat_z": {"type": ["number", "null"]},
    "crowding_stress_z": {"type": ["number", "null"]},
    "overlay_score": {"type": "number", "minimum": 0, "maximum": 1},
    "overlay_confidence": {"type": "number", "minimum": 0, "maximum": 1},
    "source_presence_mask": {
      "type": "object",
      "properties": {
        "yahoo": {"type": "boolean"},
        "youtube": {"type": "boolean"},
        "wikimedia": {"type": "boolean"},
        "google_trends": {"type": "boolean"},
        "finra": {"type": "boolean"}
      },
      "additionalProperties": false
    },
    "hold_extension_hint": {"type": ["string", "null"], "enum": ["extend", "neutral", "trim", null]},
    "add_on_eligibility": {"type": ["boolean", "null"]},
    "feature_version": {"type": "string"}
  },
  "additionalProperties": false
}
