{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/benchling/main/json-schema/benchling-folders-paginated-list-schema.json",
  "title": "FoldersPaginatedList",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/benchling-folders-api-openapi.yml#/components/schemas/FoldersPaginatedList",
  "properties": {
    "folders": {
      "items": {
        "$ref": "#/$defs/Folder"
      },
      "type": "array"
    },
    "nextToken": {
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "ArchiveRecord": {
      "properties": {
        "reason": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "Folder": {
      "properties": {
        "archiveRecord": {
          "allOf": [
            {
              "$ref": "#/$defs/ArchiveRecord"
            }
          ],
          "readOnly": true
        },
        "id": {
          "readOnly": true,
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "parentFolderId": {
          "description": "ID of the parent folder, if it exists",
          "type": [
            "string",
            "null"
          ]
        },
        "projectId": {
          "description": "ID of the containing project",
          "readOnly": true,
          "type": "string"
        }
      }
    }
  }
}