Barndoor · Schema

PaginationMeta

Pagination metadata.

AI AgentsAI GovernanceAgentic AIMCPModel Context ProtocolPolicy EnforcementOAuthIdentitySecurityAuditControl Plane

Properties

Name Type Description
page integer Current page number
limit integer Items per page
total integer Total number of items
pages integer Total number of pages
previous_page object Previous page number (null if first page)
next_page object Next page number (null if last page)
View JSON Schema on GitHub

JSON Schema

barndoor-pagination-meta-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "PaginationMeta",
  "properties": {
    "page": {
      "type": "integer",
      "title": "Page",
      "description": "Current page number"
    },
    "limit": {
      "type": "integer",
      "title": "Limit",
      "description": "Items per page"
    },
    "total": {
      "type": "integer",
      "title": "Total",
      "description": "Total number of items"
    },
    "pages": {
      "type": "integer",
      "title": "Pages",
      "description": "Total number of pages"
    },
    "previous_page": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Previous Page",
      "description": "Previous page number (null if first page)"
    },
    "next_page": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Next Page",
      "description": "Next page number (null if last page)"
    }
  },
  "type": "object",
  "required": [
    "page",
    "limit",
    "total",
    "pages",
    "previous_page",
    "next_page"
  ],
  "description": "Pagination metadata."
}