{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/united-states-fire-administration/main/json-schema/usfa-disaster-declaration-schema.json",
  "title": "FEMA Disaster Declaration",
  "description": "Schema for a FEMA disaster declaration record from OpenFEMA, including fire management assistance declarations managed by USFA",
  "type": "object",
  "properties": {
    "disasterNumber": {
      "type": "integer",
      "description": "Unique FEMA disaster number assigned sequentially"
    },
    "declarationType": {
      "type": "string",
      "description": "Type of declaration: DR (Major Disaster), EM (Emergency), FM (Fire Management Assistance)",
      "enum": ["DR", "EM", "FM"]
    },
    "declarationTitle": {
      "type": "string",
      "description": "Official title of the disaster declaration"
    },
    "state": {
      "type": "string",
      "description": "Two-letter state abbreviation",
      "minLength": 2,
      "maxLength": 2
    },
    "declarationDate": {
      "type": "string",
      "format": "date-time",
      "description": "Date and time of the presidential declaration"
    },
    "incidentType": {
      "type": "string",
      "description": "Primary type of incident",
      "enum": [
        "Fire",
        "Flood",
        "Hurricane",
        "Tornado",
        "Earthquake",
        "Winter Storm",
        "Severe Storm(s)",
        "Tropical Storm",
        "Typhoon",
        "Drought",
        "Freezing",
        "Landslide",
        "Mud/Landslide",
        "Tsunami",
        "Coastal Storm",
        "Dam/Levee Break",
        "Chemical",
        "Biological",
        "Volcanic Eruption",
        "Other"
      ]
    },
    "incidentBeginDate": {
      "type": "string",
      "format": "date-time",
      "description": "Date the incident began"
    },
    "incidentEndDate": {
      "type": "string",
      "format": "date-time",
      "description": "Date the incident ended"
    },
    "fipsStateCode": {
      "type": "string",
      "description": "FIPS state code"
    },
    "fipsCountyCode": {
      "type": "string",
      "description": "FIPS county code"
    },
    "designatedArea": {
      "type": "string",
      "description": "Designated disaster area description"
    },
    "disasterCloseoutDate": {
      "type": "string",
      "format": "date-time",
      "description": "Date the disaster was administratively closed"
    }
  },
  "required": ["disasterNumber", "declarationType", "state", "declarationDate", "incidentType"]
}
