{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/servera-co-uk/json-schema/servera-co-uk-malware-notify-body-schema.json",
  "title": "MalwareNotifyBody",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/servera-co-uk-openapi.json#/components/schemas/MalwareNotifyBody",
  "properties": {
    "enabled": {
      "type": "boolean",
      "title": "Enabled",
      "description": "Turn scheduled malicious-code scanning + email notifications on/off for this service.",
      "default": false
    },
    "recipient_emails": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Recipient Emails",
      "description": "Who receives the report email. Max 20. You may include or omit the account owner."
    },
    "cadence": {
      "type": "string",
      "title": "Cadence",
      "description": "How often to scan: daily | weekly | monthly.",
      "default": "daily"
    },
    "hour": {
      "type": "integer",
      "maximum": 23.0,
      "minimum": 0.0,
      "title": "Hour",
      "description": "Hour of day (Europe/Vilnius).",
      "default": 4
    },
    "minute": {
      "type": "integer",
      "maximum": 59.0,
      "minimum": 0.0,
      "title": "Minute",
      "description": "Minute of hour (Europe/Vilnius).",
      "default": 0
    },
    "day_of_week": {
      "type": "integer",
      "maximum": 6.0,
      "minimum": 0.0,
      "title": "Day Of Week",
      "description": "Weekly cadence only: 0=Monday … 6=Sunday.",
      "default": 0
    },
    "day_of_month": {
      "type": "integer",
      "maximum": 28.0,
      "minimum": 1.0,
      "title": "Day Of Month",
      "description": "Monthly cadence only: day 1–28.",
      "default": 1
    },
    "notify_on_clean": {
      "type": "boolean",
      "title": "Notify On Clean",
      "description": "Also email the report when a scan finds 0 malware (default: only email when threats are found).",
      "default": false
    }
  },
  "type": "object"
}