{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bookit-n-go/json-schema/bookit-n-go-webhook-input-schema.json",
  "title": "WebhookInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bookit-n-go-webhooks-api-openapi.yml#/components/schemas/WebhookInput",
  "type": "object",
  "required": [
    "url",
    "eventTypes"
  ],
  "properties": {
    "url": {
      "type": "string",
      "format": "uri",
      "pattern": "^https://"
    },
    "eventTypes": {
      "type": "array",
      "minItems": 1,
      "uniqueItems": true,
      "items": {
        "type": "string",
        "enum": [
          "flight.booking.created",
          "flight.booking.updated",
          "hotel.booking.created",
          "hotel.booking.updated",
          "trip.created",
          "trip.item.added",
          "hotel.booking.cancelled",
          "servicing.action.completed",
          "servicing.action.unknown"
        ]
      }
    }
  }
}