{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Notification",
  "title": "Notification",
  "additionalProperties": true,
  "description": "Details about a notification.",
  "properties": {
    "htmlBody": {
      "description": "The HTML body of the email notification for the issue.",
      "type": "string"
    },
    "restrict": {
      "allOf": [
        {
          "$ref": "#/components/schemas/NotificationRecipientsRestrictions"
        }
      ],
      "description": "Restricts the notifications to users with the specified permissions."
    },
    "subject": {
      "description": "The subject of the email notification for the issue. If this is not specified, then the subject is set to the issue key and summary.",
      "type": "string"
    },
    "textBody": {
      "description": "The plain text body of the email notification for the issue.",
      "type": "string"
    },
    "to": {
      "allOf": [
        {
          "$ref": "#/components/schemas/NotificationRecipients"
        }
      ],
      "description": "The recipients of the email notification for the issue."
    }
  },
  "type": "object"
}