{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ktemia/json-schema/ktemia-post-flights-search-request-schema.json",
  "title": "PostFlightsSearchRequest",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/ktemia-openapi-generated.yml#/components/schemas/PostFlightsSearchRequest",
  "type": "object",
  "properties": {
    "origin": {
      "type": "string",
      "description": "Airport or city code for departure."
    },
    "destination": {
      "type": "string",
      "description": "Airport or city code for arrival."
    },
    "departureDate": {
      "type": "string",
      "description": "Date of departure (YYYY‑MM‑DD)."
    },
    "returnDate": {
      "type": "string",
      "description": "Date of return for round‑trip (YYYY‑MM‑DD)."
    },
    "legs": {
      "type": "array",
      "description": "Array of leg objects for multi‑city trips (2‑6 legs)."
    }
  },
  "required": [
    "origin",
    "destination",
    "departureDate"
  ]
}