{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/charter-boats/json-schema/charter-boats-get-ai-trips-id-response-schema.json",
  "title": "GetAiTripsIdResponse",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/charter-boats-openapi-generated.yml#/components/schemas/GetAiTripsIdResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Trip UUID."
    },
    "title": {
      "type": "string",
      "description": "Trip title."
    },
    "start_location": {
      "type": "string",
      "description": "Starting location name (free text)."
    },
    "location": {
      "type": "string",
      "description": "The published starting location (marina, city, country)."
    },
    "start_date": {
      "type": "string",
      "description": "Planned start date."
    },
    "end_date": {
      "type": "string",
      "description": "Planned end date."
    },
    "duration_days": {
      "type": "integer",
      "description": "Calendar days including the departure day."
    },
    "total_distance_nm": {
      "type": "number",
      "description": "Total distance in nautical miles."
    },
    "boat_type": {
      "type": "string",
      "description": "Boat type the itinerary was planned for."
    },
    "activities": {
      "type": "array",
      "description": "POI categories of the plan's stops."
    },
    "highlights": {
      "type": "array",
      "description": "Up to 6 trip highlights."
    },
    "rating": {
      "type": "number",
      "description": "Average rating."
    },
    "review_count": {
      "type": "integer",
      "description": "Number of reviews."
    },
    "favorite_count": {
      "type": "integer",
      "description": "Number of favorites."
    },
    "total_sailing_hours": {
      "type": "number",
      "description": "Total sailing hours across the trip."
    },
    "days": {
      "type": "array",
      "description": "Condensed day‑by‑day plan."
    },
    "days[].day": {
      "type": "integer",
      "description": "Day number."
    },
    "days[].date": {
      "type": "string",
      "description": "Date for this day."
    },
    "days[].from": {
      "type": "string",
      "description": "Start marina/location."
    },
    "days[].to": {
      "type": "string",
      "description": "End marina/location."
    },
    "days[].distance_nm": {
      "type": "number",
      "description": "Distance sailed this day."
    },
    "days[].stops": {
      "type": "array",
      "description": "Up to 6 places visited on the day."
    },
    "days[].stops[].name": {
      "type": "string",
      "description": "Name of the stop."
    },
    "days[].stops[].kind": {
      "type": "string",
      "description": "Kind (location | poi)."
    },
    "days[].stops[].activity": {
      "type": "string",
      "description": "What the plan says to do there."
    },
    "days[].stops[].duration_min": {
      "type": "integer",
      "description": "Duration in minutes."
    },
    "days[].notes": {
      "type": "string",
      "description": "Day notes."
    },
    "days[].recap": {
      "type": "string",
      "description": "Day recap."
    },
    "url": {
      "type": "string",
      "description": "Link to trip page on charter.boats."
    }
  }
}