{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/floodbase/json-schema/floodbase-event-map-schema.json",
  "title": "EventMap",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/floodbase-openapi.json#/components/schemas/EventMap",
  "properties": {
    "creator_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Creator Id",
      "x-c2s-associated-resource": "User"
    },
    "time_created": {
      "type": "string",
      "format": "date-time",
      "title": "Time Created"
    },
    "time_updated": {
      "type": "string",
      "format": "date-time",
      "title": "Time Updated"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "historical_timeseries_id": {
      "type": "integer",
      "title": "Historical Timeseries Id",
      "x-c2s-associated-resource": "HistoricalTimeseries"
    },
    "start_date": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "Start Date"
    },
    "end_date": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "End Date"
    },
    "peak_date": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "Peak Date"
    },
    "flood_png_graded_blob": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Flood Png Graded Blob",
      "x-c2s-associated-resource": "Upload"
    },
    "flood_png_binary_blob": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Flood Png Binary Blob",
      "x-c2s-associated-resource": "Upload"
    },
    "event_max_cog_blob": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Event Max Cog Blob",
      "x-c2s-associated-resource": "Upload"
    },
    "permanent_water_geojson_blob": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Permanent Water Geojson Blob",
      "x-c2s-associated-resource": "Upload"
    },
    "ocean_geojson_blob": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ocean Geojson Blob",
      "x-c2s-associated-resource": "Upload"
    },
    "flood_vmin": {
      "type": "number",
      "title": "Flood Vmin"
    },
    "flood_vmax": {
      "type": "number",
      "title": "Flood Vmax"
    },
    "flood_ramp": {
      "items": {},
      "type": "array",
      "title": "Flood Ramp"
    },
    "binary_color": {
      "type": "string",
      "title": "Binary Color"
    },
    "binary_threshold": {
      "type": "number",
      "title": "Binary Threshold"
    },
    "flood_display_mode": {
      "type": "string",
      "title": "Flood Display Mode"
    },
    "event_map_metadata": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Event Map Metadata"
    }
  },
  "type": "object",
  "required": [
    "time_created",
    "time_updated",
    "id",
    "historical_timeseries_id",
    "flood_vmin",
    "flood_vmax",
    "flood_ramp",
    "binary_color",
    "binary_threshold",
    "flood_display_mode"
  ],
  "x-c2s-associating-resources": {
    "EventMapApproval": "event_map_id",
    "WorkflowRunEventMapAssociation": "event_map_id"
  }
}