{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/silvercar/json-schema/silvercar-admin-fleet-availability-interval-response-schema.json",
  "title": "AdminFleetAvailabilityIntervalResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/silvercar-availability-api-openapi.yml#/components/schemas/AdminFleetAvailabilityIntervalResponse",
  "type": "object",
  "required": [
    "start_at",
    "end_at",
    "fleet_id",
    "available",
    "active_vehicle_count",
    "required_vehicle_count"
  ],
  "properties": {
    "start_at": {
      "type": "string",
      "format": "date-time",
      "description": "The beginning of the interval"
    },
    "end_at": {
      "type": "string",
      "format": "date-time",
      "description": "The beginning of the interval"
    },
    "fleet_id": {
      "type": "number",
      "description": "The id for this fleet"
    },
    "available": {
      "type": "boolean",
      "description": "True if there is availability for this interval, false otherwise"
    },
    "active_vehicle_count": {
      "type": "integer",
      "description": "The count of active vehicles in a fleet"
    },
    "required_vehicle_count": {
      "type": "integer",
      "description": "The count of minimum vehicles required to service all bookings within a time range"
    }
  }
}