{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ignav-com/json-schema/ignav-com-one-way-request-schema.json",
  "title": "OneWayRequest",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ignav-com-openapi.json#/components/schemas/OneWayRequest",
  "properties": {
    "origin": {
      "type": "string",
      "title": "Origin"
    },
    "destination": {
      "type": "string",
      "title": "Destination"
    },
    "departure_date": {
      "type": "string",
      "format": "date",
      "title": "Departure Date"
    },
    "adults": {
      "type": "integer",
      "minimum": 1.0,
      "title": "Adults",
      "default": 1
    },
    "children": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Children",
      "default": 0
    },
    "infants_in_seat": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Infants In Seat",
      "default": 0
    },
    "infants_on_lap": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Infants On Lap",
      "default": 0
    },
    "cabin_class": {
      "type": "string",
      "enum": [
        "economy",
        "premium_economy",
        "business",
        "first"
      ],
      "title": "Cabin Class",
      "default": "economy"
    },
    "max_stops": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 2.0,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Stops"
    },
    "min_carry_on_bags": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Min Carry On Bags"
    },
    "min_checked_bags": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Min Checked Bags"
    },
    "max_price": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Price"
    },
    "departure_time_range": {
      "anyOf": [
        {
          "$ref": "#/$defs/TimeRangeInput"
        },
        {
          "type": "null"
        }
      ]
    },
    "airlines_include": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Airlines Include"
    },
    "airlines_exclude": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Airlines Exclude"
    },
    "allow_self_transfer": {
      "type": "boolean",
      "title": "Allow Self Transfer",
      "default": true
    },
    "market": {
      "type": "string",
      "title": "Market",
      "default": "US"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "origin",
    "destination",
    "departure_date"
  ],
  "$defs": {
    "TimeRangeInput": {
      "properties": {
        "earliest_hour": {
          "anyOf": [
            {
              "type": "integer",
              "maximum": 23.0,
              "minimum": 0.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Earliest Hour"
        },
        "latest_hour": {
          "anyOf": [
            {
              "type": "integer",
              "maximum": 23.0,
              "minimum": 0.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Latest Hour"
        },
        "arrival_earliest_hour": {
          "anyOf": [
            {
              "type": "integer",
              "maximum": 23.0,
              "minimum": 0.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Arrival Earliest Hour"
        },
        "arrival_latest_hour": {
          "anyOf": [
            {
              "type": "integer",
              "maximum": 23.0,
              "minimum": 0.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Arrival Latest Hour"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "title": "TimeRangeInput"
    }
  }
}