{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/knowfulham-com/json-schema/knowfulham-com-agent-place-search-schema.json",
  "title": "AgentPlaceSearch",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/knowfulham-com-openapi.json#/components/schemas/AgentPlaceSearch",
  "type": "object",
  "required": [
    "neighbourhood",
    "dataPolicy",
    "total",
    "truncated",
    "places"
  ],
  "properties": {
    "neighbourhood": {
      "type": "string",
      "enum": [
        "fulham",
        "chelsea",
        "nottinghill",
        "kensington"
      ]
    },
    "locality": {
      "type": "string"
    },
    "dataPolicy": {
      "type": "object",
      "additionalProperties": true
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "total": {
      "type": "integer"
    },
    "truncated": {
      "type": "boolean"
    },
    "places": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AgentPlace"
      }
    }
  },
  "$defs": {
    "AgentPlace": {
      "type": "object",
      "required": [
        "slug",
        "url",
        "name",
        "category",
        "subZone",
        "tags",
        "featured",
        "readerVotes",
        "lastEdited"
      ],
      "additionalProperties": {
        "$ref": "#/$defs/Sourced"
      },
      "properties": {
        "slug": {
          "$ref": "#/$defs/Sourced"
        },
        "url": {
          "$ref": "#/$defs/Sourced"
        },
        "name": {
          "$ref": "#/$defs/Sourced"
        },
        "category": {
          "$ref": "#/$defs/Sourced"
        },
        "subZone": {
          "$ref": "#/$defs/Sourced"
        },
        "tags": {
          "$ref": "#/$defs/Sourced"
        },
        "featured": {
          "$ref": "#/$defs/Sourced"
        },
        "priceBand": {
          "$ref": "#/$defs/Sourced"
        },
        "shortDescription": {
          "$ref": "#/$defs/Sourced"
        },
        "curatorTip": {
          "$ref": "#/$defs/Sourced"
        },
        "readerVotes": {
          "$ref": "#/$defs/Sourced"
        },
        "bestOfUrl": {
          "description": "Omitted unless the category is one of: coffee, restaurant, pub, bakery, park, shop.",
          "allOf": [
            {
              "$ref": "#/$defs/Sourced"
            }
          ]
        },
        "lastEdited": {
          "$ref": "#/$defs/Sourced"
        }
      }
    },
    "Sourced": {
      "type": "object",
      "required": [
        "value",
        "source"
      ],
      "properties": {
        "value": {},
        "source": {
          "type": "string",
          "enum": [
            "know-editorial",
            "know-readers",
            "know-site"
          ]
        }
      }
    }
  }
}