{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/knownottinghill-com/json-schema/knownottinghill-com-place-preview-schema.json",
  "title": "PlacePreview",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/knownottinghill-com-openapi.json#/components/schemas/PlacePreview",
  "type": "object",
  "required": [
    "id",
    "name",
    "slug",
    "category",
    "neighbourhood",
    "location",
    "photos",
    "blurDataUrls",
    "tags",
    "openingHours",
    "curatorTip",
    "subZone",
    "priceLevel",
    "featured",
    "agreeCount",
    "disagreeCount",
    "createdAt",
    "address",
    "shortDescription",
    "description",
    "partnership",
    "nativeActionData"
  ],
  "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"
    },
    "address": {
      "type": "string"
    },
    "shortDescription": {
      "type": [
        "string",
        "null"
      ]
    },
    "description": {
      "type": "string",
      "description": "On GET /api/places, the short description when one exists, otherwise the editorial description trimmed to 180 characters. On GET /api/places/{slug}, the full editorial description."
    },
    "partnership": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": false,
      "required": [
        "status",
        "primaryCtaType",
        "bookingUrl",
        "enquiryUrl",
        "whatsappUrl",
        "orderUrl",
        "offerText"
      ],
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "claimed",
            "partner"
          ]
        },
        "primaryCtaType": {
          "type": "string",
          "enum": [
            "booking",
            "enquiry",
            "whatsapp",
            "order"
          ]
        },
        "bookingUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "enquiryUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "whatsappUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "orderUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "offerText": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "nativeActionData": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": false,
      "properties": {
        "googlePlaceId": {
          "type": [
            "string",
            "null"
          ]
        },
        "googleMapsUri": {
          "type": [
            "string",
            "null"
          ]
        },
        "googleDirectionsUri": {
          "type": [
            "string",
            "null"
          ]
        },
        "phone": {
          "type": [
            "string",
            "null"
          ]
        },
        "reservable": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "takeout": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "delivery": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "urls": {
          "type": "object",
          "additionalProperties": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "providers": {
          "type": "object",
          "additionalProperties": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "sources": {
          "type": "object",
          "additionalProperties": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "fetchedAt": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  },
  "$defs": {
    "Location": {
      "type": "object",
      "required": [
        "latitude",
        "longitude"
      ],
      "properties": {
        "latitude": {
          "type": "number"
        },
        "longitude": {
          "type": "number"
        }
      }
    }
  }
}