{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/codecov/main/json-schema/codecov-paginated-commit-uploads-list-schema.json",
  "title": "PaginatedCommitUploadsList",
  "x-generated": "2026-10-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/codecov-commits-api-openapi.yml#/components/schemas/PaginatedCommitUploadsList",
  "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/CommitUploads"
      }
    }
  },
  "$defs": {
    "CommitUploads": {
      "type": "object",
      "properties": {
        "created_at": {
          "type": "string"
        },
        "updated_at": {
          "type": "string"
        },
        "storage_path": {
          "type": "string"
        },
        "flags": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "provider": {
          "type": "string"
        },
        "build_code": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "job_code": {
          "type": "string"
        },
        "build_url": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "state_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "state_name": {
          "readOnly": true,
          "oneOf": [
            {
              "$ref": "#/$defs/StateNameEnum"
            },
            {
              "$ref": "#/$defs/NullEnum"
            }
          ]
        },
        "env": {},
        "upload_type": {
          "type": "string"
        },
        "upload_extras": {},
        "totals": {
          "$ref": "#/$defs/UploadTotals"
        }
      },
      "required": [
        "build_code",
        "build_url",
        "created_at",
        "env",
        "flags",
        "job_code",
        "name",
        "provider",
        "state",
        "state_id",
        "state_name",
        "storage_path",
        "totals",
        "updated_at",
        "upload_extras",
        "upload_type"
      ]
    },
    "NullEnum": {
      "enum": [
        null
      ]
    },
    "StateNameEnum": {
      "enum": [
        "UPLOADED",
        "PROCESSED",
        "ERROR",
        "FULLY_OVERWRITTEN",
        "PARTIALLY_OVERWRITTEN",
        "MERGED"
      ],
      "type": "string",
      "description": "* `UPLOADED` - UPLOADED\n* `PROCESSED` - PROCESSED\n* `ERROR` - ERROR\n* `FULLY_OVERWRITTEN` - FULLY_OVERWRITTEN\n* `PARTIALLY_OVERWRITTEN` - PARTIALLY_OVERWRITTEN\n* `MERGED` - MERGED"
    },
    "UploadTotals": {
      "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"
        }
      },
      "required": [
        "branches",
        "coverage",
        "files",
        "hits",
        "lines",
        "methods",
        "misses",
        "partials"
      ]
    }
  }
}