{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/codecov/main/json-schema/codecov-paginated-user-session-list-schema.json",
  "title": "PaginatedUserSessionList",
  "x-generated": "2026-10-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/codecov-users-api-openapi.yml#/components/schemas/PaginatedUserSessionList",
  "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/UserSession"
      }
    }
  },
  "$defs": {
    "UserSession": {
      "type": "object",
      "properties": {
        "username": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true
        },
        "has_active_session": {
          "type": "boolean"
        },
        "expiry_date": {
          "type": "string",
          "format": "date-time"
        }
      },
      "required": [
        "expiry_date",
        "has_active_session",
        "name",
        "username"
      ]
    }
  }
}