{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://norfolkbroadsboatfinder.co.uk/data/fleet-schema.json",
  "title": "Norfolk Broads Boat Finder fleet record",
  "description": "Version 1.0 operator-supplied fleet record. CSV headings use snake_case versions of these property names.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "id", "operatorId", "operatorName", "name", "type", "berths", "location",
    "area", "guidePriceGbp", "priceBasis", "petsAllowed", "accessibleBoarding",
    "passesWroxhamBridge", "bookingUrl", "summary", "lastVerified", "status"
  ],
  "properties": {
    "id": {"type": "string", "pattern": "^[a-z0-9][a-z0-9-]*$"},
    "operatorId": {"type": "string", "pattern": "^[a-z0-9][a-z0-9-]*$"},
    "operatorName": {"type": "string", "minLength": 2},
    "operatorUrl": {"type": "string", "format": "uri"},
    "name": {"type": "string", "minLength": 2},
    "type": {"enum": ["Cruiser", "Electric", "Day boat", "Sailing yacht"]},
    "berths": {"type": "integer", "minimum": 1, "maximum": 16},
    "cabins": {"type": "integer", "minimum": 0},
    "toilets": {"type": "integer", "minimum": 0},
    "location": {"type": "string", "minLength": 2},
    "area": {"enum": ["Northern Broads", "Southern Broads"]},
    "guidePriceGbp": {"type": "number", "minimum": 0},
    "priceBasis": {"type": "string", "minLength": 2},
    "petsAllowed": {"type": "boolean"},
    "accessibleBoarding": {"type": "boolean"},
    "passesWroxhamBridge": {"type": "boolean"},
    "bowThruster": {"type": "boolean"},
    "upperHelm": {"type": "boolean"},
    "shorePower": {"type": "boolean"},
    "bookingUrl": {"type": "string", "format": "uri"},
    "imageUrl": {"type": "string", "format": "uri"},
    "summary": {"type": "string", "minLength": 20, "maxLength": 320},
    "lastVerified": {"type": "string", "format": "date"},
    "status": {"enum": ["demo", "published", "paused"]}
  }
}
