{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/awardclaw-com/json-schema/awardclaw-com-drop-schema.json",
  "title": "Drop",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/awardclaw-com-openapi.json#/components/schemas/Drop",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "origin": {
      "type": "string"
    },
    "destination": {
      "type": "string"
    },
    "cabin": {
      "type": "string",
      "enum": [
        "Business",
        "First"
      ]
    },
    "airlines": {
      "type": [
        "string",
        "null"
      ]
    },
    "round_trip": {
      "type": "boolean"
    },
    "best_miles": {
      "type": [
        "integer",
        "null"
      ]
    },
    "summary": {
      "type": [
        "string",
        "null"
      ]
    },
    "programs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "outbound": {
      "type": "object",
      "properties": {
        "date_range": {
          "type": [
            "string",
            "null"
          ]
        },
        "dates": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DropDate"
          }
        }
      }
    },
    "return": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "date_range": {
          "type": [
            "string",
            "null"
          ]
        },
        "dates": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DropDate"
          }
        }
      }
    },
    "detected_at": {
      "type": "string",
      "format": "date-time"
    },
    "last_seen_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "score": {
      "type": "integer"
    }
  },
  "$defs": {
    "DropDate": {
      "type": "object",
      "properties": {
        "date": {
          "type": "string",
          "format": "date"
        },
        "miles": {
          "type": "integer"
        },
        "seats": {
          "type": [
            "integer",
            "null"
          ]
        },
        "taxes_usd": {
          "type": [
            "number",
            "null"
          ]
        },
        "program": {
          "type": "string"
        },
        "program_name": {
          "type": "string"
        },
        "airlines": {
          "type": [
            "string",
            "null"
          ]
        },
        "booking_url": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}