Skip to content

pagination

Generated reference page for spec/v1/schemas/common/pagination.json.

Metadata

  • Type: JSON Schema
  • Source: spec/v1/schemas/common/pagination.json
  • Raw: View Raw

Summary

Source

json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://agent-service.spec/v1/schemas/common/pagination.json",
  "$defs": {
    "pageQuery": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "offset": {
          "type": "integer",
          "minimum": 0,
          "default": 0
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 200,
          "default": 20
        }
      }
    },
    "pageMeta": {
      "type": "object",
      "additionalProperties": false,
      "required": ["total", "offset", "limit"],
      "properties": {
        "total": {
          "type": "integer",
          "minimum": 0
        },
        "offset": {
          "type": "integer",
          "minimum": 0
        },
        "limit": {
          "type": "integer",
          "minimum": 1
        }
      }
    }
  }
}

Generated from spec source.