{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/codecov/main/json-schema/codecov-paginated-measurement-list-schema.json",
  "title": "PaginatedMeasurementList",
  "x-generated": "2026-10-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/codecov-coverage-api-openapi.yml#/components/schemas/PaginatedMeasurementList",
  "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/Measurement"
      }
    }
  },
  "$defs": {
    "Measurement": {
      "type": "object",
      "properties": {
        "timestamp": {
          "type": "string",
          "format": "date-time",
          "title": "timestamp at the start of the interval"
        },
        "min": {
          "type": "number",
          "format": "double",
          "title": "minimum value in the interval"
        },
        "max": {
          "type": "number",
          "format": "double",
          "title": "maximum value in the interval"
        },
        "avg": {
          "type": "number",
          "format": "double",
          "title": "average value in the interval"
        }
      },
      "required": [
        "avg",
        "max",
        "min",
        "timestamp"
      ]
    }
  }
}