{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/schedulesmcp-com/json-schema/schedulesmcp-com-lane-carrier-reliability-schema.json",
  "title": "LaneCarrierReliability",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/schedulesmcp-com-openapi.json#/components/schemas/LaneCarrierReliability",
  "type": "object",
  "properties": {
    "carrier_code": {
      "type": "string",
      "description": "SCAC"
    },
    "carrier_name": {
      "type": "string"
    },
    "on_time_pct": {
      "type": [
        "number",
        "string"
      ],
      "description": "Share of sailings that left within 24h of the carrier's declared date"
    },
    "avg_delay_hours": {
      "type": [
        "number",
        "string",
        "null"
      ]
    },
    "median_delay_hours": {
      "type": [
        "number",
        "string",
        "null"
      ]
    },
    "p90_delay_hours": {
      "type": [
        "number",
        "string",
        "null"
      ]
    },
    "max_delay_hours": {
      "type": [
        "number",
        "string",
        "null"
      ]
    },
    "observations": {
      "type": "integer",
      "description": "Completed sailings measured"
    },
    "provisional": {
      "type": "boolean",
      "description": "true when observations < min_obs (early data)"
    },
    "dep_precision_p50_min": {
      "type": [
        "number",
        "string",
        "null"
      ]
    },
    "berth_precision_p50_min": {
      "type": [
        "number",
        "string",
        "null"
      ],
      "description": "Median planned-vs-actual berth window, minutes"
    },
    "delay_basis": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "published_etd",
        "first_declared"
      ],
      "description": "What the delay is measured against: the carrier's published ETD, or the first time declared for the sailing. Null when we have no documented basis."
    }
  }
}