{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://parentsvaccineguide.org/schemas/vaers_lot_csv_export.schema.json",
  "title": "VAERS Lot CSV Export",
  "description": "Client-generated CSV from dashboard Export button.",
  "type": "array",
  "items": {
    "type": "object",
    "required": ["vaccine", "lot_id", "reports", "serious_pct", "volume_zscore", "signal_flag"],
    "properties": {
      "vaccine": { "type": "string" },
      "lot_id": { "type": "string", "description": "Full lot_number." },
      "reports": { "type": "integer", "minimum": 0 },
      "serious_pct": { "type": "number" },
      "volume_zscore": { "type": "number" },
      "oe_ratio": { "type": ["number", "string", "null"] },
      "signal_flag": { "type": "boolean" }
    },
    "additionalProperties": false
  }
}