{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adobe/json-schema/adobe-folder-listing-schema.json",
  "title": "FolderListing",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adobe-aem-folders-openapi.yml#/components/schemas/FolderListing",
  "type": "object",
  "properties": {
    "cursor": {
      "$ref": "#/$defs/Cursor"
    },
    "self": {
      "$ref": "#/$defs/Folder"
    },
    "children": {
      "description": "The items contained in this folder, filtered and sorted according to the query parameters",
      "type": "array",
      "items": {
        "$ref": "#/$defs/FolderListingItem"
      }
    }
  },
  "$defs": {
    "Cursor": {
      "description": "A cursor is an opaque string that can be used in API calls which support paginating the response. A non-existent cursor\nsignifies that the returned list does not have more elements.\n",
      "type": "string",
      "minLength": 1
    },
    "Folder": {
      "description": "A reference to a folder. Only high-level properties are included.",
      "allOf": [
        {
          "$ref": "#/$defs/FolderListingItem"
        },
        {
          "type": "object",
          "properties": {
            "type": {
              "description": "The type of this listing item. Always `FOLDER` for folder entries.\n",
              "allOf": [
                {
                  "$ref": "#/$defs/FolderListingItemType"
                }
              ],
              "default": "FOLDER",
              "readOnly": true
            },
            "name": {
              "type": "string",
              "minLength": 1,
              "description": "The name of the folder, usually the last node of the path."
            },
            "title": {
              "type": [
                "string",
                "null"
              ],
              "description": "The title of the folder for display purposes.\n"
            },
            "folderId": {
              "type": "string",
              "minLength": 1,
              "description": "The unique identifier for the folder",
              "readOnly": true
            },
            "path": {
              "type": "string",
              "minLength": 1,
              "description": "The path to the folder",
              "readOnly": true
            }
          },
          "required": [
            "type",
            "folderId",
            "name",
            "path"
          ]
        }
      ]
    },
    "FolderListingItem": {
      "description": "A single item in a folder listing response. Can be either a folder or an asset,\ndiscriminated by the `type` property.\n",
      "type": "object",
      "properties": {
        "type": {
          "$ref": "#/$defs/FolderListingItemType"
        }
      },
      "required": [
        "type"
      ]
    },
    "FolderListingItemType": {
      "description": "The type of resource in a folder listing response.\nUsed as the filter value in the `types` query parameter.\n",
      "type": "string",
      "enum": [
        "FOLDER",
        "ASSET"
      ]
    }
  }
}