{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/knownottinghill-com/json-schema/knownottinghill-com-nearby-place-schema.json",
  "title": "NearbyPlace",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/knownottinghill-com-openapi.json#/components/schemas/NearbyPlace",
  "type": "object",
  "required": [
    "id",
    "name",
    "slug",
    "category",
    "neighbourhood",
    "location",
    "photos",
    "blurDataUrls",
    "tags",
    "openingHours",
    "curatorTip",
    "subZone",
    "priceLevel",
    "featured",
    "agreeCount",
    "disagreeCount",
    "createdAt",
    "distance"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "category": {
      "type": "string",
      "enum": [
        "coffee",
        "bakery",
        "restaurant",
        "pub",
        "park",
        "shop",
        "gym",
        "school",
        "health",
        "transport",
        "other"
      ]
    },
    "neighbourhood": {
      "type": "string",
      "enum": [
        "fulham",
        "chelsea",
        "nottinghill",
        "kensington"
      ]
    },
    "location": {
      "$ref": "#/$defs/Location"
    },
    "photos": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "blurDataUrls": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "openingHours": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": false,
      "properties": {
        "monday": {
          "type": "string"
        },
        "tuesday": {
          "type": "string"
        },
        "wednesday": {
          "type": "string"
        },
        "thursday": {
          "type": "string"
        },
        "friday": {
          "type": "string"
        },
        "saturday": {
          "type": "string"
        },
        "sunday": {
          "type": "string"
        },
        "notes": {
          "type": "string"
        }
      }
    },
    "curatorTip": {
      "type": [
        "string",
        "null"
      ]
    },
    "subZone": {
      "type": [
        "string",
        "null"
      ]
    },
    "priceLevel": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 1,
      "maximum": 4
    },
    "featured": {
      "type": "boolean"
    },
    "agreeCount": {
      "type": "integer"
    },
    "disagreeCount": {
      "type": "integer"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "distance": {
      "type": "number",
      "description": "Metres from the query point"
    }
  },
  "$defs": {
    "Location": {
      "type": "object",
      "required": [
        "latitude",
        "longitude"
      ],
      "properties": {
        "latitude": {
          "type": "number"
        },
        "longitude": {
          "type": "number"
        }
      }
    }
  }
}