{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/codecov/main/json-schema/codecov-paginated-repo-list-schema.json",
  "title": "PaginatedRepoList",
  "x-generated": "2026-10-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/codecov-repos-api-openapi.yml#/components/schemas/PaginatedRepoList",
  "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/Repo"
      }
    }
  },
  "$defs": {
    "CommitTotals": {
      "type": "object",
      "properties": {
        "files": {
          "type": "integer"
        },
        "lines": {
          "type": "integer"
        },
        "hits": {
          "type": "integer"
        },
        "misses": {
          "type": "integer"
        },
        "partials": {
          "type": "integer"
        },
        "coverage": {
          "type": "number",
          "format": "double",
          "readOnly": true
        },
        "branches": {
          "type": "integer"
        },
        "methods": {
          "type": "integer"
        },
        "sessions": {
          "type": "integer"
        },
        "complexity": {
          "type": "number",
          "format": "double"
        },
        "complexity_total": {
          "type": "number",
          "format": "double"
        },
        "complexity_ratio": {
          "type": "number",
          "format": "double",
          "readOnly": true
        },
        "diff": {
          "type": "integer",
          "readOnly": true,
          "title": "Deprecated: this will always return 0.  Please use comparison endpoint for diff totals instead."
        }
      },
      "required": [
        "branches",
        "complexity",
        "complexity_ratio",
        "complexity_total",
        "coverage",
        "diff",
        "files",
        "hits",
        "lines",
        "methods",
        "misses",
        "partials",
        "sessions"
      ]
    },
    "Owner": {
      "type": "object",
      "properties": {
        "service": {
          "allOf": [
            {
              "$ref": "#/$defs/ServiceEnum"
            }
          ],
          "readOnly": true
        },
        "username": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true
        }
      },
      "required": [
        "name",
        "service",
        "username"
      ]
    },
    "Repo": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "title": "repository name"
        },
        "private": {
          "type": "boolean",
          "title": "indicates private vs. public repository"
        },
        "updatestamp": {
          "type": "string",
          "format": "date-time",
          "title": "last updated timestamp"
        },
        "author": {
          "allOf": [
            {
              "$ref": "#/$defs/Owner"
            }
          ],
          "title": "repository owner"
        },
        "language": {
          "type": "string",
          "title": "primary programming language used"
        },
        "branch": {
          "type": "string",
          "title": "default branch name"
        },
        "active": {
          "type": "boolean",
          "title": "indicates whether the repository has received a coverage upload"
        },
        "activated": {
          "type": "boolean",
          "title": "indicates whether the repository has been manually deactivated"
        },
        "totals": {
          "allOf": [
            {
              "$ref": "#/$defs/CommitTotals"
            }
          ],
          "title": "recent commit totals on the default branch"
        }
      },
      "required": [
        "activated",
        "active",
        "author",
        "branch",
        "language",
        "name",
        "private",
        "totals",
        "updatestamp"
      ]
    },
    "ServiceEnum": {
      "enum": [
        "github",
        "gitlab",
        "bitbucket",
        "github_enterprise",
        "gitlab_enterprise",
        "bitbucket_server"
      ],
      "type": "string",
      "description": "* `github` - Github\n* `gitlab` - Gitlab\n* `bitbucket` - Bitbucket\n* `github_enterprise` - Github Enterprise\n* `gitlab_enterprise` - Gitlab Enterprise\n* `bitbucket_server` - Bitbucket Server"
    }
  }
}