{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/justautomate-ai/json-schema/justautomate-ai-page-list-schema.json",
  "title": "PageList",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/justautomate-ai-openapi.json#/components/schemas/PageList",
  "type": "object",
  "required": [
    "data",
    "total",
    "limit",
    "next_cursor"
  ],
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PageSummary"
      }
    },
    "total": {
      "type": "integer",
      "description": "Number of pages matching the filters."
    },
    "limit": {
      "type": "integer"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pass as cursor to get the next page; null on the last page."
    }
  },
  "$defs": {
    "PageSummary": {
      "type": "object",
      "required": [
        "title",
        "url",
        "markdownUrl",
        "type",
        "lang"
      ],
      "properties": {
        "title": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri",
          "description": "Canonical URL of the page."
        },
        "markdownUrl": {
          "type": "string",
          "format": "uri",
          "description": "The same page as Markdown."
        },
        "description": {
          "type": "string",
          "description": "Meta description. City pages have none."
        },
        "type": {
          "type": "string",
          "enum": [
            "home",
            "section",
            "offer",
            "guide",
            "blog",
            "about",
            "contact",
            "city",
            "legal",
            "other"
          ]
        },
        "lang": {
          "type": "string",
          "enum": [
            "pl",
            "en",
            "de"
          ]
        }
      }
    }
  }
}