{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bellatorsi-com/json-schema/bellatorsi-com-webhook-registration-schema.json",
  "title": "WebhookRegistration",
  "description": "Model for webhook callback registration.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bellatorsi-com-webhooks-api-openapi.yml#/components/schemas/WebhookRegistration",
  "properties": {
    "url": {
      "type": "string",
      "maxLength": 2083,
      "minLength": 1,
      "format": "uri",
      "title": "Url",
      "description": "Webhook callback URL"
    },
    "events": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Events",
      "description": "Events to trigger webhook"
    },
    "secret": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Secret",
      "description": "Shared secret for webhook signature validation"
    }
  },
  "type": "object",
  "required": [
    "url"
  ]
}