{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bugbug-io/json-schema/bugbug-io-paginated-v2-folder-list-schema.json",
  "title": "PaginatedV2FolderList",
  "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/PaginatedV2FolderList",
  "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/V2Folder"
      }
    }
  },
  "$defs": {
    "V2Folder": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "readOnly": true
        },
        "kind": {
          "enum": [
            "test",
            "component"
          ],
          "type": "string",
          "description": "* `test` - Test\n* `component` - Component",
          "x-spec-enum-id": "9c17c40f667f186e",
          "readOnly": true
        },
        "depth": {
          "type": "integer",
          "readOnly": true
        },
        "parentId": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid",
          "readOnly": true
        }
      },
      "required": [
        "depth",
        "id",
        "kind",
        "name",
        "parentId"
      ]
    }
  }
}