{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/red-hat/main/json-schema/red-hat-paginated-project-list-schema.json",
  "title": "PaginatedProjectList",
  "description": "A paginated list of projects.",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/red-hat-projects-api-openapi.yml#/components/schemas/PaginatedProjectList",
  "type": "object",
  "properties": {
    "count": {
      "type": "integer"
    },
    "next": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "previous": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The unique identifier of the project."
          },
          "name": {
            "type": "string",
            "description": "The name of the project."
          },
          "description": {
            "type": "string",
            "description": "A description of the project."
          },
          "scm_type": {
            "type": "string",
            "description": "The source control type.",
            "enum": [
              "",
              "git",
              "svn",
              "insights",
              "archive"
            ]
          },
          "scm_url": {
            "type": "string",
            "description": "The source control URL."
          },
          "scm_branch": {
            "type": "string",
            "description": "The source control branch."
          }
        }
      }
    }
  }
}