{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/FileItem",
  "title": "FileItem",
  "type": "object",
  "description": "A file or folder entry in the Essbase file catalog.",
  "properties": {
    "name": {
      "type": "string",
      "description": "File or folder name."
    },
    "fullPath": {
      "type": "string",
      "description": "Full path in the file catalog."
    },
    "type": {
      "type": "string",
      "description": "Item type.",
      "enum": [
        "file",
        "folder"
      ]
    },
    "permissions": {
      "type": "object",
      "description": "Permissions on this item.",
      "properties": {
        "addFolder": {
          "type": "boolean",
          "description": "Permission to add sub-folders."
        },
        "addFile": {
          "type": "boolean",
          "description": "Permission to add files."
        }
      }
    }
  }
}