{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/mq_rule",
  "title": "mq_rule",
  "properties": {
    "actions": {
      "description": "Array of R2 object actions that will trigger notifications",
      "example": [
        "PutObject",
        "CopyObject"
      ],
      "items": {
        "$ref": "#/components/schemas/mq_r2-action"
      },
      "type": "array",
      "uniqueItems": true
    },
    "prefix": {
      "description": "Notifications will be sent only for objects with this prefix",
      "example": "img/",
      "type": "string"
    },
    "suffix": {
      "description": "Notifications will be sent only for objects with this suffix",
      "example": ".jpeg",
      "type": "string"
    }
  },
  "required": [
    "actions"
  ],
  "type": "object"
}