{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amadeus/refs/heads/main/json-schema/flight-cheapest-date-search-flight-date-schema.json",
  "title": "FlightDate",
  "description": "FlightDate schema from Flight Cheapest Date Search",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "description": "the resource name",
      "example": "flight-date"
    },
    "origin": {
      "type": "string",
      "example": "PAR"
    },
    "destination": {
      "type": "string",
      "example": "DXB"
    },
    "departureDate": {
      "type": "string",
      "example": "2017-08-19"
    },
    "returnDate": {
      "type": "string",
      "example": "2017-08-22"
    },
    "price": {
      "properties": {
        "total": {
          "description": "Total amount paid by the user",
          "type": "string",
          "example": "932.70"
        }
      }
    },
    "links": {
      "type": "object",
      "properties": {
        "flightDestinations": {
          "type": "string",
          "example": "https://test.api.amadeus.com/v1/shopping/flight-destinations?origin=PAR&nonStop=true"
        },
        "flightOffers": {
          "type": "string",
          "example": "https://test.api.amadeus.com/v1/shopping/flight-offers?origin=PAR&destination=MAD&departureDate=2017-08-26&returnDate=2017-08-30&adults=1"
        }
      }
    }
  }
}