{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/alert-camp/json-schema/alert-camp-alert-update-schema.json",
  "title": "AlertUpdate",
  "description": "Schema for updating an alert.",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/alert-camp-openapi.json#/components/schemas/AlertUpdate",
  "properties": {
    "date_start": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "Date Start"
    },
    "date_end": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "Date End"
    },
    "days_filter": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^(all|weekends|weekdays)$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Days Filter"
    },
    "nights_min": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 14.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Nights Min"
    },
    "nights_max": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 14.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Nights Max"
    },
    "is_active": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Is Active"
    },
    "notify_push": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Notify Push"
    },
    "notify_email": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Notify Email"
    },
    "notify_sms": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Notify Sms"
    },
    "split_stay": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Split Stay"
    },
    "party_size": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 99.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Party Size"
    },
    "sub_equipment_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Sub Equipment Id"
    },
    "op_access_point_resource_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Op Access Point Resource Id"
    },
    "tent_pads": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 50.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Tent Pads"
    },
    "day_use_cells": {
      "anyOf": [
        {
          "additionalProperties": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Day Use Cells"
    },
    "entry_dates": {
      "anyOf": [
        {
          "items": {
            "type": "string",
            "format": "date"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Entry Dates"
    },
    "equipment_filter_mode": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^(any|tent|rv)$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Equipment Filter Mode"
    },
    "activity_type": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^(camping|chalet|canoe_camping|backcountry|fishing|boat|equestrian|day_use)$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Activity Type"
    },
    "has_electricity": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Has Electricity"
    },
    "is_accessible": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Is Accessible"
    },
    "pets_only": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Pets Only"
    },
    "is_pull_through": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Is Pull Through"
    },
    "is_tent_only": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Is Tent Only"
    },
    "shade_only": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Shade Only"
    },
    "waterfront_only": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Waterfront Only"
    },
    "campground_selections": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/CampgroundSelectionCreate"
          },
          "type": "array",
          "maxItems": 200,
          "minItems": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Campground Selections"
    }
  },
  "type": "object",
  "$defs": {
    "CampgroundSelectionCreate": {
      "properties": {
        "campground_id": {
          "type": "string",
          "maxLength": 128,
          "minLength": 1,
          "title": "Campground Id"
        },
        "zone_ids": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "maxItems": 200,
          "title": "Zone Ids",
          "description": "Zone IDs to monitor. ['all'] = all zones."
        },
        "site_ids": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "maxItems": 5000,
          "title": "Site Ids",
          "description": "Site IDs to monitor. ['all'] = all sites."
        }
      },
      "type": "object",
      "required": [
        "campground_id"
      ],
      "title": "CampgroundSelectionCreate",
      "description": "Schema for creating a campground selection within an alert."
    }
  }
}