{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$id": "https://artifacts.apis.io/fareharbor/json-schema/fareharbor-availability-lodgings-response-json-schema-schema.json",
  "title": "AVAILABILITY_LODGINGS_RESPONSE_JSON_SCHEMA",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fareharbor-lodging-endpoints-api-openapi.yml#/components/schemas/AVAILABILITY_LODGINGS_RESPONSE_JSON_SCHEMA",
  "additionalProperties": false,
  "definitions": {
    "lodging": {
      "additionalProperties": false,
      "properties": {
        "is_pickup_available": {
          "description": "Indicates whether a pickup is offered for the lodging (for the availability specified in the request URL). This value reflects the current state of the system and can change when updates are made.",
          "type": "boolean"
        },
        "name": {
          "description": "The lodging's name.",
          "type": "string"
        },
        "pickup_time": {
          "description": "The preferred pickup time (set in the company's local time).",
          "format": "datetime",
          "type": [
            "string",
            "null"
          ]
        },
        "pk": {
          "description": "The lodging's unique ID.",
          "format": "int32",
          "type": "number"
        },
        "preferred_pickup": {
          "$ref": "#/$defs/preferred_pickup"
        }
      },
      "required": [
        "pk",
        "name",
        "is_pickup_available"
      ],
      "type": "object"
    },
    "preferred_pickup": {
      "additionalProperties": false,
      "properties": {
        "latitude": {
          "description": "The preferred pickup location's latitude.",
          "type": [
            "number",
            "null"
          ]
        },
        "longitude": {
          "description": "The preferred pickup location's longitude.",
          "type": [
            "number",
            "null"
          ]
        },
        "map_url": {
          "description": "The google maps link of the preferred pickup location",
          "format": "uri",
          "type": "string"
        },
        "name": {
          "description": "The name of the preferred pickup location",
          "type": "string"
        }
      },
      "required": [
        "name",
        "map_url",
        "longitude",
        "latitude"
      ],
      "type": "object"
    }
  },
  "properties": {
    "lodgings": {
      "items": {
        "$ref": "#/$defs/lodging"
      },
      "type": "array"
    }
  },
  "required": [
    "lodgings"
  ],
  "type": "object"
}