{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/propertyindex-ae/json-schema/propertyindex-ae-location-single-schema.json",
  "title": "LocationSingle",
  "x-generated": "2026-11-07",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/propertyindex-ae-openapi.json#/components/schemas/LocationSingle",
  "type": "object",
  "required": [
    "data",
    "as_of"
  ],
  "properties": {
    "data": {
      "$ref": "#/$defs/Location"
    },
    "as_of": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    }
  },
  "$defs": {
    "Location": {
      "type": "object",
      "description": "All published location nodes: Dubai itself, areas, communities, subcommunities and towers. Each row contains only an opaque location_id and name, with no hierarchy fields. Names may repeat. Use the identifier to retrieve a single lookup entry or filter sales and rentals to that node and its descendants.",
      "properties": {
        "location_id": {
          "type": [
            "string",
            "null"
          ],
          "pattern": "^loc_[0-9a-f]{16}$",
          "description": "Opaque public location identifier. Use it to retrieve this lookup entry or filter sales and rentals to this location and its descendants."
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Location display name. Names are not unique."
        }
      }
    }
  }
}