{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gunspec-io/json-schema/gunspec-io-pagination-schema.json",
  "title": "Pagination",
  "description": "Page-size is reported under both `per_page` (matching the request parameter) and `limit` (retained for existing integrations). They always carry the same value. `total` and `totalPages` are omitted for Explorer and anonymous callers.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gunspec-io-account-api-openapi.yml#/components/schemas/Pagination",
  "type": "object",
  "properties": {
    "page": {
      "type": "integer",
      "description": "The page this response is, 1-based."
    },
    "per_page": {
      "type": "integer",
      "description": "Page size. Same value as `limit`."
    },
    "limit": {
      "type": "integer",
      "description": "Page size. Alias of `per_page`."
    },
    "total": {
      "type": "integer",
      "description": "Total records matching the query across every page."
    },
    "totalPages": {
      "type": "integer",
      "description": "How many pages the result set spans at the current `per_page`."
    }
  },
  "required": [
    "page",
    "per_page",
    "limit"
  ]
}