{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bugbug-io/json-schema/bugbug-io-paginated-v2-suite-list-schema.json",
  "title": "PaginatedV2SuiteList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bugbug-io-suites-api-openapi.yml#/components/schemas/PaginatedV2SuiteList",
  "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/V2Suite"
      }
    }
  },
  "$defs": {
    "V2Suite": {
      "type": "object",
      "properties": {
        "afterAll": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": {}
          },
          "readOnly": true
        },
        "autoAddNewTests": {
          "type": "boolean",
          "readOnly": true
        },
        "autoRetry": {
          "type": "integer",
          "readOnly": true
        },
        "beforeAfterAllEnabled": {
          "type": "boolean",
          "readOnly": true
        },
        "beforeAll": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": {}
          },
          "readOnly": true
        },
        "id": {
          "type": "string",
          "format": "uuid",
          "readOnly": true
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true
        },
        "notes": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "title": "Suite notes"
        },
        "runInParallel": {
          "type": "boolean",
          "readOnly": true
        },
        "runProfileId": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid",
          "readOnly": true
        },
        "tags": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/V2Tag"
          },
          "readOnly": true
        },
        "tests": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": {}
          },
          "readOnly": true
        },
        "testsCount": {
          "type": "integer",
          "readOnly": true
        }
      },
      "required": [
        "afterAll",
        "autoAddNewTests",
        "autoRetry",
        "beforeAfterAllEnabled",
        "beforeAll",
        "id",
        "name",
        "notes",
        "runInParallel",
        "runProfileId",
        "tags",
        "tests",
        "testsCount"
      ]
    },
    "V2Tag": {
      "type": "object",
      "properties": {
        "color": {
          "type": "string",
          "readOnly": true
        },
        "id": {
          "type": "string",
          "format": "uuid",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "readOnly": true
        }
      },
      "required": [
        "color",
        "id",
        "name"
      ]
    }
  }
}