{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fleetkeep-co-uk/json-schema/fleetkeep-co-uk-vehicle-reminder-settings-schema.json",
  "title": "VehicleReminderSettings",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fleetkeep-co-uk-reminders-api-openapi.yml#/components/schemas/VehicleReminderSettings",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "intervals",
    "primaryEmail",
    "contacts"
  ],
  "properties": {
    "intervals": {
      "$ref": "#/$defs/intervals"
    },
    "primaryEmail": {
      "type": "string",
      "format": "email"
    },
    "contacts": {
      "type": "array",
      "maxItems": 5,
      "items": {
        "$ref": "#/$defs/VehicleReminderContact"
      }
    }
  },
  "$defs": {
    "VehicleReminderContact": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "email",
        "name",
        "verifiedAt",
        "unsubscribedAt",
        "unsubscribeReason",
        "selected"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "email": {
          "type": "string",
          "format": "email"
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 160
        },
        "verifiedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "unsubscribedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "unsubscribeReason": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 500
        },
        "selected": {
          "type": "boolean"
        }
      }
    }
  }
}