{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dataquoll-io/json-schema/dataquoll-io-event-feature-schema.json",
  "title": "EventFeature",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dataquoll-io-openapi.json#/components/schemas/EventFeature",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "Feature"
    },
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "geometry": {
      "type": "object",
      "description": "Boundary polygon (convex hull of cluster) or centroid point",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "Polygon",
            "Point"
          ]
        },
        "coordinates": {
          "oneOf": [
            {
              "type": "array",
              "items": {
                "type": "array",
                "items": {
                  "type": "array",
                  "items": {
                    "type": "number"
                  }
                }
              },
              "description": "Ring arrays for Polygon boundary"
            },
            {
              "type": "array",
              "items": {
                "type": "number"
              },
              "description": "[longitude, latitude] for Point centroid"
            }
          ]
        }
      }
    },
    "properties": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string"
        },
        "incidentCount": {
          "type": "integer"
        },
        "affectedSuburbs": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "affectedStates": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "agencies": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "eventTypes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "maxSeverity": {
          "type": "string",
          "enum": [
            "Extreme",
            "Severe",
            "Moderate",
            "Minor",
            "Unknown"
          ],
          "description": "The highest severity a member incident publishes (only as its agency states it), Unknown where none states one."
        },
        "maxWarningLevel": {
          "type": "string",
          "enum": [
            "advice",
            "watch_and_act",
            "emergency_warning",
            "none"
          ],
          "description": "The highest warning level a member incident publishes (only as its agency states it), none where none states one. Absent when a member's level cannot be confirmed and no confirmed one is an Emergency Warning."
        },
        "estimatedHectares": {
          "type": [
            "number",
            "null"
          ]
        },
        "summary": {
          "type": "string"
        },
        "firstDetectedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "lastUpdatedAt": {
          "type": "string",
          "format": "date-time"
        },
        "isActive": {
          "type": "boolean"
        }
      }
    }
  }
}