{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/quub-rent/json-schema/quub-rent-destination-guide-schema.json",
  "title": "DestinationGuide",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/quub-rent-openapi.json#/components/schemas/DestinationGuide",
  "allOf": [
    {
      "$ref": "#/$defs/DestinationSummary"
    },
    {
      "type": "object",
      "properties": {
        "found": {
          "type": "boolean"
        },
        "title": {
          "type": "string"
        },
        "lede": {
          "type": "string"
        },
        "key_facts": {
          "type": "object",
          "description": "tourist_tax, short_term_rental_rules, guest_registration, parking, monthly_stays, airport, emergency_number when the guide has them.",
          "additionalProperties": {
            "$ref": "#/$defs/Fact"
          }
        },
        "facts": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Fact"
          }
        },
        "areas": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "suits": {
                "type": "string"
              },
              "parking_and_car_access": {
                "type": "string"
              },
              "stay_types": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "near": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "to": {
                      "type": "string"
                    },
                    "distance": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "articles": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "title": {
                "type": "string"
              },
              "url": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "updated": {
                "type": "string"
              }
            }
          }
        },
        "faq": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "q": {
                "type": "string"
              },
              "a": {
                "type": "string"
              }
            }
          }
        },
        "sources": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "search": {
          "type": "string"
        },
        "car_rental": {
          "type": "string"
        }
      }
    }
  ],
  "$defs": {
    "DestinationSummary": {
      "type": "object",
      "properties": {
        "slug": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "updated": {
          "type": "string"
        },
        "guide_url": {
          "type": "string"
        },
        "api_url": {
          "type": "string"
        }
      }
    },
    "Fact": {
      "type": "object",
      "properties": {
        "label": {
          "type": "string"
        },
        "value": {
          "type": "string"
        },
        "source": {
          "type": "string"
        }
      }
    }
  }
}