{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/car-gene-com/json-schema/car-gene-com-departure-plan-response-schema.json",
  "title": "DeparturePlanResponse",
  "description": "出発時刻ごとの所要時間の一覧\n\n地点は住所から解決した結果を返す。入力した住所と違う場所に解決されていないかを\n画面で確かめられるようにするため。",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/car-gene-com-departures-api-openapi.yml#/components/schemas/DeparturePlanResponse",
  "properties": {
    "origin": {
      "type": "string",
      "title": "Origin"
    },
    "destination": {
      "type": "string",
      "title": "Destination"
    },
    "day_of_week": {
      "type": "integer",
      "title": "Day Of Week"
    },
    "date": {
      "type": "string",
      "title": "Date"
    },
    "traffic_model": {
      "type": "string",
      "title": "Traffic Model"
    },
    "options": {
      "items": {
        "$ref": "#/$defs/DepartureOptionResponse"
      },
      "type": "array",
      "title": "Options"
    },
    "best_departure_time": {
      "type": "string",
      "title": "Best Departure Time"
    },
    "best_route_polyline": {
      "type": "string",
      "title": "Best Route Polyline"
    }
  },
  "type": "object",
  "required": [
    "origin",
    "destination",
    "day_of_week",
    "date",
    "traffic_model",
    "options"
  ],
  "$defs": {
    "DepartureOptionResponse": {
      "properties": {
        "departure_time": {
          "type": "string",
          "title": "Departure Time"
        },
        "duration_minutes": {
          "type": "integer",
          "title": "Duration Minutes"
        },
        "duration_without_traffic_minutes": {
          "type": "integer",
          "title": "Duration Without Traffic Minutes"
        },
        "distance_km": {
          "type": "number",
          "title": "Distance Km"
        },
        "summary": {
          "type": "string",
          "title": "Summary"
        }
      },
      "type": "object",
      "required": [
        "departure_time",
        "duration_minutes",
        "duration_without_traffic_minutes",
        "distance_km",
        "summary"
      ],
      "title": "DepartureOptionResponse",
      "description": "ある出発時刻で出たときの所要時間"
    }
  }
}