{
  "config": {
    "type": "object",
    "properties": {
      "$ref": "module://@nikitajs/ldap/search#/definitions/config",
      "operations": {
        "type": "array",
        "coercion": true,
        "items": {
          "type": "object",
          "properties": {
            "changetype": {
              "type": "string",
              "enum": [
                "add",
                "modify",
                "remove"
              ],
              "description": "Valid operation type"
            },
            "attributes": {
              "type": "array",
              "coercion": true,
              "items": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "add",
                      "delete",
                      "replace"
                    ],
                    "description": "Operation type."
                  },
                  "name": {
                    "type": "string",
                    "description": "Attribute name."
                  },
                  "value": {
                    "type": "string",
                    "description": "Attribute value."
                  }
                },
                "required": [
                  "type",
                  "name"
                ]
              },
              "description": "List of attribute operations"
            }
          }
        },
        "description": "Object to be inserted, modified or removed."
      },
      "exclude": {
        "type": "array",
        "coercion": true,
        "items": {
          "type": "string"
        },
        "default": [],
        "description": "List of attribute to not compare, eg `userPassword`."
      }
    },
    "required": [
      "operations"
    ]
  }
}
