{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/dwp-exchange-gateway/_shared/latest--request-transformer-actions-schema.json",
  "title": "Request transformer actions plugin",
  "description": "Plugin to modify the request before forwarding to the backend",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/dwp/schemas/main/exchange/publishing-tools/plugins/request-transformer/request-transformer-actions-schema.json",
    "sourceSha256": "1e38e4c0fa0f1c7a62b5030101bbba89efc18ea3f12795cfa22fd87bf4d2d6a4"
  },
  "type": "object",
  "properties": {
    "add": {
      "title": "Add transformations",
      "type": "array",
      "minLength": 1,
      "items": {
        "type": "string"
      }
    },
    "append": {
      "title": "Append transformations",
      "type": "array",
      "minLength": 1,
      "items": {
        "type": "string"
      }
    },
    "remove": {
      "title": "Remove transformations",
      "type": "array",
      "minLength": 1,
      "items": {
        "type": "string"
      }
    },
    "rename": {
      "title": "Rename transformations",
      "type": "array",
      "minLength": 1,
      "items": {
        "type": "string"
      }
    },
    "replace": {
      "title": "Replace transformations",
      "type": "array",
      "minLength": 1,
      "items": {
        "type": "string"
      }
    }
  },
  "anyOf": [
    {
      "title": "add",
      "required": [
        "add"
      ]
    },
    {
      "title": "append",
      "required": [
        "append"
      ]
    },
    {
      "title": "remove",
      "required": [
        "remove"
      ]
    },
    {
      "title": "rename",
      "required": [
        "rename"
      ]
    },
    {
      "title": "replace",
      "required": [
        "replace"
      ]
    }
  ],
  "additionalProperties": false
}
