{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/flyfrugal-fyi/json-schema/flyfrugal-fyi-flight-deal-schema.json",
  "title": "FlightDeal",
  "x-generated": "2026-11-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/flyfrugal-fyi-openapi.yaml#/components/schemas/FlightDeal",
  "type": "object",
  "required": [
    "origin",
    "destination_airport",
    "departure_date",
    "return_date",
    "nights",
    "price",
    "currency",
    "observed_at"
  ],
  "properties": {
    "origin": {
      "type": "string"
    },
    "destination_airport": {
      "type": "string"
    },
    "label": {
      "type": "string"
    },
    "country": {
      "type": "string"
    },
    "departure_date": {
      "type": "string",
      "format": "date"
    },
    "return_date": {
      "type": "string",
      "format": "date"
    },
    "nights": {
      "type": "integer"
    },
    "price": {
      "type": "number"
    },
    "currency": {
      "type": "string"
    },
    "airlines": {
      "type": [
        "string",
        "null"
      ]
    },
    "longest_layover_minutes": {
      "type": [
        "integer",
        "null"
      ]
    },
    "google_price_signal": {
      "type": [
        "string",
        "null"
      ]
    },
    "google_usual_low": {
      "type": [
        "number",
        "null"
      ]
    },
    "google_usual_high": {
      "type": [
        "number",
        "null"
      ]
    },
    "google_savings": {
      "type": [
        "number",
        "null"
      ]
    },
    "google_signal_checked_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "latest_checked_at": {
      "type": "string"
    },
    "fresh_today": {
      "type": "boolean"
    },
    "observed_today": {
      "type": "boolean"
    },
    "observation_count": {
      "type": "integer"
    }
  }
}