{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/parkypass-com/json-schema/parkypass-com-ride-response-schema.json",
  "title": "RideResponse",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/parkypass-com-openapi.json#/components/schemas/RideResponse",
  "allOf": [
    {
      "$ref": "#/$defs/RideFacts"
    },
    {
      "type": "object",
      "required": [
        "schema_version",
        "docs_url",
        "attribution",
        "generated_at"
      ],
      "properties": {
        "schema_version": {
          "type": "integer",
          "const": 1,
          "description": "Response format version. Fields are only added within a version."
        },
        "live": {
          "type": "object",
          "description": "Omitted when provider-derived data is disabled.",
          "properties": {
            "data_status": {
              "type": "string",
              "enum": [
                "live",
                "unavailable"
              ]
            },
            "park_open": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "checked_at": {
              "type": [
                "string",
                "null"
              ],
              "format": "date-time"
            },
            "wait": {
              "oneOf": [
                {
                  "$ref": "#/$defs/LiveRide"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Null for rides without a posted queue."
            }
          }
        },
        "reliability": {
          "oneOf": [
            {
              "$ref": "#/$defs/ReliabilityRide"
            },
            {
              "type": "null"
            }
          ],
          "description": "30-day summary; omitted when provider-derived data is disabled."
        },
        "docs_url": {
          "type": "string",
          "format": "uri",
          "description": "Developer documentation."
        },
        "attribution": {
          "$ref": "#/$defs/Attribution"
        },
        "generated_at": {
          "type": "string",
          "format": "date-time",
          "description": "When Parky built this response."
        }
      }
    }
  ],
  "$defs": {
    "Attribution": {
      "type": "object",
      "required": [
        "text",
        "url",
        "required"
      ],
      "description": "Required credit. Wherever Parky data is shown, display `text` with a visible link to `url`; the link must stay visible.",
      "properties": {
        "text": {
          "type": "string",
          "const": "Live data from parkypass.com",
          "description": "Text to display."
        },
        "url": {
          "type": "string",
          "format": "uri",
          "description": "The matching parkypass.com page to link."
        },
        "required": {
          "type": "boolean",
          "const": true,
          "description": "Always true: attribution is a condition of use."
        }
      }
    },
    "LightningLane": {
      "type": [
        "object",
        "null"
      ],
      "required": [
        "type",
        "state",
        "return_start",
        "return_end",
        "price"
      ],
      "description": "The ride's current Lightning Lane return window. Multi Pass is preferred when a ride has both.",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "multi_pass",
            "single_pass"
          ]
        },
        "state": {
          "type": [
            "string",
            "null"
          ],
          "description": "AVAILABLE, or FINISHED when sold out for the day."
        },
        "return_start": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "Next return window start (when AVAILABLE)."
        },
        "return_end": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "Next return window end."
        },
        "price": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "amount": {
              "type": "number"
            },
            "currency": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "description": "Single Pass price when shown."
        }
      }
    },
    "LiveRide": {
      "type": "object",
      "description": "Queued rides (`type: \"ride\"`) are always listed, with status `unavailable` and null waits when no live value is reported. Walk-through attractions (`experience`), shows (`show`) and character meets (`meet`) are listed only while reported.",
      "required": [
        "ride_id",
        "name",
        "type",
        "status",
        "is_open",
        "wait_minutes",
        "single_rider_available",
        "single_rider_wait_minutes",
        "lightning_lane",
        "changed_at"
      ],
      "properties": {
        "ride_id": {
          "type": "string",
          "description": "Parky ride ID; use it with /v1/rides/{ride_id}."
        },
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "ride",
            "experience",
            "show",
            "meet"
          ],
          "description": "`ride`: a queued ride, always listed. `experience`: a walk-through or open attraction (Swiss Family Treehouse, Walt Disney World Railroad). `show`: a show the feed posts a wait for (Mickey's PhilharMagic). `meet`: a character meet (Meet Mickey at Town Square Theater); filter these out to show rides and shows only."
        },
        "status": {
          "type": "string",
          "enum": [
            "OPERATING",
            "DOWN",
            "CLOSED",
            "REFURBISHMENT",
            "UNKNOWN",
            "unavailable"
          ],
          "description": "Operator status; `unavailable` means no live value is reported for this ride."
        },
        "is_open": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "True when the ride and park are open; null when unavailable."
        },
        "wait_minutes": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Posted standby wait; null when closed or unavailable (never 0 for unknown)."
        },
        "single_rider_available": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "single_rider_wait_minutes": {
          "type": [
            "integer",
            "null"
          ]
        },
        "lightning_lane": {
          "$ref": "#/$defs/LightningLane"
        },
        "changed_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "When this ride's value last changed. Not a freshness time: data is current whenever data_status is live."
        }
      }
    },
    "ReliabilityRide": {
      "type": "object",
      "required": [
        "ride_id",
        "name",
        "uptime_pct",
        "outages",
        "outages_per_day",
        "days_observed"
      ],
      "properties": {
        "ride_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "uptime_pct": {
          "type": [
            "number",
            "null"
          ],
          "description": "Percent of open-park minutes the ride was not down."
        },
        "outages": {
          "type": [
            "integer",
            "null"
          ]
        },
        "outages_per_day": {
          "type": [
            "number",
            "null"
          ]
        },
        "average_outage_minutes": {
          "type": [
            "number",
            "null"
          ]
        },
        "longest_outage_minutes": {
          "type": [
            "number",
            "null"
          ]
        },
        "days_observed": {
          "type": [
            "integer",
            "null"
          ]
        },
        "down_minutes": {
          "type": [
            "number",
            "null"
          ]
        },
        "operating_minutes": {
          "type": [
            "number",
            "null"
          ]
        }
      }
    },
    "RideFacts": {
      "type": "object",
      "required": [
        "ride_id",
        "name",
        "park_id",
        "park_key",
        "park_name",
        "facts",
        "url"
      ],
      "properties": {
        "ride_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "park_id": {
          "type": "string"
        },
        "park_key": {
          "type": "string"
        },
        "park_name": {
          "type": "string"
        },
        "land": {
          "type": [
            "string",
            "null"
          ],
          "description": "The ride's land, from the park's own catalog (Disney parks)."
        },
        "ride_type": {
          "type": [
            "string",
            "null"
          ],
          "description": "Curated type such as `launched roller coaster`, else the catalog type (attraction, show)."
        },
        "is_attraction": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "has_lightning_lane": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "height_requirement_inches": {
          "type": [
            "number",
            "null"
          ]
        },
        "duration_seconds": {
          "type": [
            "number",
            "null"
          ]
        },
        "location": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "latitude": {
              "type": "number"
            },
            "longitude": {
              "type": "number"
            }
          }
        },
        "facts": {
          "type": "object",
          "additionalProperties": true,
          "description": "Reviewed facts when present: height_inches, duration_seconds, duration_minutes, top_speed_mph, drop_feet, opened_year, single_rider, rider_swap, transfer_required, wheelchair_access, kid_intensity, kid_scare_factors, locker_policy, facts_source_url, facts_reviewed_at."
        },
        "url": {
          "type": "string",
          "format": "uri",
          "description": "The ride's parkypass.com page."
        },
        "updated_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "Last catalog update."
        }
      }
    }
  }
}