{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fleetkeep-co-uk/json-schema/fleetkeep-co-uk-booking-write-schema.json",
  "title": "BookingWrite",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fleetkeep-co-uk-bookings-api-openapi.yml#/components/schemas/BookingWrite",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "maintenanceEventId",
    "preferredPostcode"
  ],
  "properties": {
    "maintenanceEventId": {
      "type": "string",
      "format": "uuid"
    },
    "preferredPostcode": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    },
    "preferredDate": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "preferredGarage": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 160
    },
    "garageEmail": {
      "type": [
        "string",
        "null"
      ],
      "format": "email"
    },
    "garagePhone": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 80
    },
    "garageWebsite": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "notes": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 1200
    }
  }
}