{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wso2/main/json-schema/wso2-alerts-subscription-schema.json",
  "title": "Alerts Subscription",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/wso2-alert-subscriptions-api-openapi.yml#/components/schemas/AlertsSubscription",
  "type": "object",
  "properties": {
    "alerts": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AlertType"
      }
    },
    "emailList": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "email"
      }
    }
  },
  "$defs": {
    "AlertType": {
      "title": "Alert Type",
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The alert Id"
        },
        "name": {
          "type": "string",
          "description": "The name of the alert."
        }
      }
    }
  }
}