{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/open-education-api/json-schema/open-education-api-pagination-schema.json",
  "title": "Pagination",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/open-education-api-news-api-openapi.yml#/components/schemas/Pagination",
  "type": "object",
  "required": [
    "pageSize",
    "pageNumber",
    "hasPreviousPage",
    "hasNextPage",
    "items"
  ],
  "properties": {
    "pageSize": {
      "type": "integer",
      "format": "int32",
      "description": "The number of items per page"
    },
    "pageNumber": {
      "type": "integer",
      "format": "int32",
      "description": "The current page number",
      "minimum": 1
    },
    "hasPreviousPage": {
      "type": "boolean",
      "description": "Whether there is a previous page"
    },
    "hasNextPage": {
      "type": "boolean",
      "description": "Whether there is a previous page"
    },
    "totalPages": {
      "type": "integer",
      "format": "int32",
      "description": "Total number of pages"
    }
  }
}