{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vepathos-com/json-schema/vepathos-com-driver-response-schema.json",
  "title": "DriverResponse",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vepathos-com-openapi.json#/components/schemas/DriverResponse",
  "properties": {
    "first_name": {
      "type": "string",
      "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."
    },
    "id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "integer"
        }
      ],
      "title": "Id"
    },
    "vehicles": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/DriverVehicleResponse"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Vehicles",
      "description": "Vehicle types the driver can operate."
    }
  },
  "type": "object",
  "required": [
    "first_name",
    "id"
  ],
  "$defs": {
    "DriverVehicleResponse": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name"
        },
        "volume": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Volume"
        },
        "volume_unit": {
          "anyOf": [
            {
              "$ref": "#/$defs/VolumeUnit"
            },
            {
              "type": "null"
            }
          ]
        },
        "weight": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Weight"
        },
        "weight_unit": {
          "anyOf": [
            {
              "$ref": "#/$defs/WeightUnit"
            },
            {
              "type": "null"
            }
          ]
        },
        "consumption": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Consumption"
        },
        "consumption_unit": {
          "anyOf": [
            {
              "$ref": "#/$defs/VehicleConsumptionUnit"
            },
            {
              "type": "null"
            }
          ]
        },
        "category_type": {
          "anyOf": [
            {
              "$ref": "#/$defs/VehicleCategoryType"
            },
            {
              "type": "null"
            }
          ]
        },
        "engine_type": {
          "anyOf": [
            {
              "$ref": "#/$defs/VehicleEngineType"
            },
            {
              "type": "null"
            }
          ]
        },
        "id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "integer"
            }
          ],
          "title": "Id"
        },
        "qty": {
          "type": "integer",
          "title": "Qty"
        }
      },
      "type": "object",
      "required": [
        "name",
        "id",
        "qty"
      ],
      "title": "DriverVehicleResponse"
    },
    "VehicleCategoryType": {
      "type": "string",
      "enum": [
        "TRUCK",
        "VAN",
        "PICKUP",
        "MOTORCYCLE",
        "BICYCLE"
      ],
      "title": "VehicleCategoryType"
    },
    "VehicleConsumptionUnit": {
      "type": "string",
      "enum": [
        "LITERS_PER_100KM",
        "KILOMETERS_PER_LITER",
        "MILES_PER_GALLON",
        "GALLONS_PER_MILE"
      ],
      "title": "VehicleConsumptionUnit"
    },
    "VehicleEngineType": {
      "type": "string",
      "enum": [
        "GASOLINE",
        "DIESEL",
        "CNG",
        "ELECTRIC",
        "HYBRID",
        "MECHANIC"
      ],
      "title": "VehicleEngineType"
    },
    "VolumeUnit": {
      "type": "string",
      "enum": [
        "CUBIC_CENTIMETER",
        "CUBIC_METER",
        "LITER",
        "CUBIC_INCH",
        "CUBIC_FEET",
        "GALLON"
      ],
      "title": "VolumeUnit"
    },
    "WeightUnit": {
      "type": "string",
      "enum": [
        "GRAMS",
        "KILOGRAMS",
        "OUNCES",
        "POUNDS"
      ],
      "title": "WeightUnit"
    }
  }
}