{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adobe/json-schema/adobe-delete-folders-command-result-schema.json",
  "title": "DeleteFoldersCommandResult",
  "description": "The result of an `adobe.folders.deleteFolders` command.\n",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adobe-aem-folders-openapi.yml#/components/schemas/DeleteFoldersCommandResult",
  "allOf": [
    {
      "type": "object",
      "properties": {
        "operation": {
          "type": "string",
          "default": "adobe.folders.deleteFolders"
        },
        "data": {
          "type": "object",
          "description": "Delete Folders Command Result",
          "properties": {
            "deletedFolders": {
              "type": "array",
              "maxItems": 10,
              "items": {
                "type": "string",
                "minLength": 1
              }
            },
            "failedFolders": {
              "$ref": "#/$defs/FailedFolders"
            }
          }
        }
      }
    },
    {
      "$ref": "#/$defs/CommandResult"
    }
  ],
  "required": [
    "operation"
  ],
  "$defs": {
    "CommandResult": {
      "description": "The result of a command. A command is an operation that changes a system in a different way than via a CRUD\nrequest to a resource.\n",
      "type": "object",
      "properties": {
        "operation": {
          "type": "string",
          "description": "The operation that was performed.",
          "minLength": 1
        },
        "status": {
          "type": "integer",
          "format": "int32",
          "description": "The HTTP status code ([RFC9110, Section 15](https://www.rfc-editor.org/rfc/rfc9110.html#section-15))\ngenerated by the origin server corresponding to this operation.\n"
        },
        "description": {
          "type": "string",
          "description": "A human-readable explanation specific to this command, explaining the status.",
          "minLength": 1
        },
        "data": {
          "type": "object",
          "description": "The data returned by the operation, which will vary by the implementing command. Each command\nMUST provide its own schema definition for this object, by defining all the properties a client is\nexpected to encounter.\n"
        },
        "errors": {
          "type": "array",
          "description": "An optional array of errors that occurred during the operation.",
          "items": {
            "$ref": "#/$defs/CommandResultMessage"
          }
        },
        "warnings": {
          "type": "array",
          "description": "An optional array of warnings that occurred during the operation.",
          "items": {
            "$ref": "#/$defs/CommandResultMessage"
          }
        }
      },
      "required": [
        "operation",
        "status",
        "description"
      ]
    },
    "CommandResultMessage": {
      "description": "CommandResultMessage Object to encapsulate the result of a command.",
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "A URI reference [RFC3986](https://www.rfc-editor.org/rfc/rfc3986) that identifies the message type.",
          "minLength": 1
        },
        "title": {
          "type": "string",
          "description": "A short, human-readable summary of the problem type.",
          "minLength": 1
        },
        "detail": {
          "type": "string",
          "description": "A human-readable explanation specific to this occurrence of the problem."
        },
        "context": {
          "type": "object",
          "description": "An optional object containing additional context information about the problem.\n\nEach command MUST provide its own schema definition for this object, by defining all the properties a client is\nexpected to encounter.\n"
        }
      },
      "required": [
        "type",
        "title"
      ]
    },
    "FailedFolderItem": {
      "description": "A folder that failed to be processed during a folders command. Combines the problem\ndetails of the failure with the identity of the folder to which it applies.\n\nAt least one of `path` or `id` identifies the folder. Path-addressed operations\n(`createFolders`, `deleteFoldersByPath`, `moveFolders`/`copyFolders` by path) populate\n`path`, and `id` is included when known. Id-addressed operations (`moveFolders`/\n`copyFolders` by id) populate `id`; `path` is included once the id resolves to a folder.\n",
      "allOf": [
        {
          "type": "object",
          "properties": {
            "path": {
              "type": "string",
              "minLength": 1,
              "description": "The path of the folder to which this failure applies, when known."
            },
            "id": {
              "type": "string",
              "minLength": 1,
              "description": "The unique identifier of the folder to which this failure applies, when known."
            }
          },
          "anyOf": [
            {
              "required": [
                "path"
              ]
            },
            {
              "required": [
                "id"
              ]
            }
          ]
        },
        {
          "$ref": "#/$defs/CommandResultMessage"
        }
      ]
    },
    "FailedFolders": {
      "type": "array",
      "description": "An optional array of folders that failed to be processed during the operation.",
      "maxItems": 10,
      "items": {
        "$ref": "#/$defs/FailedFolderItem"
      }
    }
  }
}