{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/tomorrow-io/main/json-schema/tomorrow-io-event-schema.json",
  "title": "Tomorrow.io Event",
  "description": "A high-impact weather event (e.g. tropical storm, severe thunderstorm, wildfire, flood, lightning) or a customer-defined event.",
  "type": "object",
  "required": ["eventId", "insight", "startTime"],
  "properties": {
    "eventId": { "type": "string" },
    "insight": { "type": "string", "description": "The insight category id this event was generated for." },
    "title": { "type": "string" },
    "description": { "type": "string" },
    "severity": { "type": "string", "enum": ["info", "low", "medium", "high", "severe"] },
    "startTime": { "type": "string", "format": "date-time" },
    "endTime": { "type": "string", "format": "date-time" },
    "location": {
      "type": "object",
      "properties": {
        "type": { "type": "string" },
        "coordinates": { "type": "array" }
      }
    },
    "eventValues": { "type": "object", "additionalProperties": true }
  }
}
