{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/xtiles-app/json-schema/xtiles-app-read-table-rows-request-schema.json",
  "title": "ReadTableRowsRequest",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/xtiles-app-openapi.json#/components/schemas/ReadTableRowsRequest",
  "required": [
    "url"
  ],
  "type": "object",
  "properties": {
    "url": {
      "minLength": 1,
      "type": "string"
    },
    "collection_view_id": {
      "type": "string"
    },
    "sort": {
      "maxItems": 8,
      "minItems": 0,
      "type": "array",
      "items": {
        "$ref": "#/$defs/TableSortBy"
      }
    },
    "filter": {
      "$ref": "#/$defs/JsonNode"
    },
    "page": {
      "maximum": 1000000,
      "minimum": 1,
      "type": "integer",
      "format": "int32"
    },
    "per_page": {
      "maximum": 500,
      "minimum": 1,
      "type": "integer",
      "format": "int32"
    }
  },
  "$defs": {
    "JsonNode": {
      "type": "object"
    },
    "TableSortBy": {
      "required": [
        "column_id"
      ],
      "type": "object",
      "properties": {
        "column_id": {
          "minLength": 1,
          "type": "string"
        },
        "direction": {
          "type": "string",
          "enum": [
            "asc",
            "desc"
          ]
        }
      }
    }
  }
}