{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/monit-rs/json-schema/monit-rs-changelog-subscribe-request-schema.json",
  "title": "ChangelogSubscribeRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/monit-rs-subscriptions-api-openapi.yml#/components/schemas/ChangelogSubscribeRequest",
  "type": "object",
  "properties": {
    "webhook_url": {
      "type": "string",
      "format": "uri",
      "description": "Slack or Discord webhook URL."
    },
    "channel_type": {
      "type": "string",
      "enum": [
        "slack",
        "discord"
      ],
      "description": "Which webhook host to expect. Must match the URL host."
    },
    "api_slug": {
      "type": "string",
      "description": "Restrict to a single vendor slug. Omit to subscribe to all vendors.",
      "pattern": "^[a-z0-9][a-z0-9-]{0,63}$"
    }
  },
  "required": [
    "webhook_url",
    "channel_type"
  ]
}