{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/aerodatabox/refs/heads/main/json-structure/aerodatabox-flight-leg-delay-contract-structure.json",
  "description": "Delay statistics of a flight leg",
  "type": "object",
  "properties": {
    "number": {
      "minLength": 1,
      "type": "string",
      "description": "Flight number"
    },
    "origins": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/FlightDelayContract"
      },
      "description": "Delay statistics of flight on departure at origins",
      "nullable": true
    },
    "destinations": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/FlightDelayContract"
      },
      "description": "Delay statistics of flight on arrival at destinations",
      "nullable": true
    }
  },
  "required": [
    "number"
  ],
  "additionalProperties": false,
  "name": "FlightLegDelayContract"
}