{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bugbug-io/json-schema/bugbug-io-paginated-v2-folder-tree-node-list-schema.json",
  "title": "PaginatedV2FolderTreeNodeList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bugbug-io-folders-api-openapi.yml#/components/schemas/PaginatedV2FolderTreeNodeList",
  "type": "object",
  "required": [
    "count",
    "results"
  ],
  "properties": {
    "count": {
      "type": "integer"
    },
    "next": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "previous": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/V2FolderTreeNode"
      }
    }
  },
  "$defs": {
    "V2FolderTreeNode": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string"
        },
        "kind": {
          "type": "string"
        },
        "depth": {
          "type": "integer"
        },
        "parentId": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid"
        },
        "created": {
          "type": "string",
          "format": "date-time"
        },
        "contentCount": {
          "type": "integer"
        },
        "children": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": {}
          }
        }
      },
      "required": [
        "children",
        "contentCount",
        "created",
        "depth",
        "id",
        "kind",
        "name",
        "parentId"
      ]
    }
  }
}