{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vepathos-com/json-schema/vepathos-com-driver-update-schema.json",
  "title": "DriverUpdate",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vepathos-com-openapi.json#/components/schemas/DriverUpdate",
  "properties": {
    "first_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "First Name"
    },
    "last_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Name"
    },
    "work_schedules": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Work Schedules",
      "description": "Working hours. RFC 5545 VEVENT: `DTSTART` plus `DTEND` or `DURATION`, optionally `RRULE`. Join lines with `\\n`."
    },
    "start_point": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Start Point",
      "description": "Where the driver starts the day. Coordinates in ISO 6709 decimal degrees, latitude then longitude with signs, e.g. `+40.7128-74.0060`."
    },
    "end_point": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "End Point",
      "description": "Where the driver ends the day. Coordinates in ISO 6709 decimal degrees, latitude then longitude with signs, e.g. `+40.7128-74.0060`."
    },
    "work_areas": {
      "anyOf": [
        {
          "items": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Work Areas",
      "description": "Polygons, each an array of `geo_point` vertices."
    },
    "vehicles": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/DriverVehicleCreate"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Vehicles",
      "description": "Vehicle types the driver can operate."
    }
  },
  "type": "object",
  "$defs": {
    "DriverVehicleCreate": {
      "properties": {
        "qty": {
          "type": "integer",
          "title": "Qty"
        },
        "id": {
          "type": "string",
          "title": "Id"
        }
      },
      "type": "object",
      "required": [
        "qty",
        "id"
      ],
      "title": "DriverVehicleCreate"
    }
  }
}