{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tourradar/json-schema/tourradar-taxonomy-destination-pagination-schema.json",
  "title": "TaxonomyDestinationPagination",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tourradar-taxonomy-api-openapi.yml#/components/schemas/TaxonomyDestinationPagination",
  "required": [
    "current_page",
    "items"
  ],
  "type": "object",
  "properties": {
    "current_page": {
      "type": "integer",
      "description": "Current page number"
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TaxonomyDestination"
      }
    },
    "next_page": {
      "type": "integer",
      "description": "If this attribute exists, then another page is available. To get more results, repeat the request with the number specified in the `page` parameter. If this attribute is not part of the response, then the last page has been reached."
    }
  },
  "$defs": {
    "TaxonomyDestination": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "description": "Unique identifier of the destination"
        },
        "name": {
          "type": "string",
          "description": "Destination name"
        },
        "latitude": {
          "type": "number",
          "description": "Latitude of the destination"
        },
        "longitude": {
          "type": "number",
          "description": "Longitude of the destination"
        },
        "geoname_id": {
          "type": "integer",
          "description": "Geoname ID (from http://www.geonames.org/)"
        },
        "country_code": {
          "type": "string",
          "description": "Country code"
        },
        "currency_code": {
          "type": "string",
          "description": "Local currency code"
        },
        "currency_name": {
          "type": "string",
          "description": "Local currency name"
        },
        "electricity_outlets": {
          "type": "array",
          "description": "Electrical plug types",
          "items": {
            "type": "string"
          }
        },
        "country_id": {
          "type": "integer",
          "description": "The id of the country related to this destination, when available"
        },
        "parent_ids": {
          "type": "array",
          "description": "Parent destination IDs",
          "items": {
            "type": "integer"
          }
        },
        "links": {
          "$ref": "#/$defs/TaxonomyLinks"
        }
      }
    },
    "TaxonomyLinks": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Type of link",
            "enum": [
              "serp"
            ]
          },
          "url": {
            "type": "string",
            "description": "URL to www.tourradar.com website"
          }
        }
      }
    }
  }
}