{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "description": "GET request that returns blocks",
  "additionalProperties": false,
  "title": "BlockListResponse",
  "type": "object",
  "required": ["results", "limit", "offset", "total"],
  "properties": {
    "limit": {
      "type": "integer",
      "maximum": 30,
      "description": "The number of blocks to return"
    },
    "offset": {
      "type": "integer",
      "description": "The number to blocks to skip (starting at `0`)",
      "default": 0
    },
    "total": {
      "type": "integer",
      "description": "The number of blocks available"
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "../../entities/blocks/block.schema.json"
      }
    }
  }
}
