{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/iterant-ai/json-schema/iterant-ai-public-page-list-schema.json",
  "title": "PublicPageList",
  "description": "The schema for what ``paginated`` builds. Kept beside it deliberately.\n\nA list operation whose ``responses`` named the *item* serializer with\n``many=True`` published a bare array while the runtime returned this object,\nso a generated client broke on its first call. Subclasses add ``items``:\neach operation needs its own named component or the item type is erased.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/iterant-ai-openapi.json#/components/schemas/PublicPageList",
  "type": "object",
  "properties": {
    "total": {
      "type": "integer",
      "description": "Rows matching the query, before `limit` and `offset`."
    },
    "offset": {
      "type": "integer",
      "description": "Rows skipped. Echoed back so a caller can page without bookkeeping."
    },
    "limit": {
      "type": "integer",
      "description": "Cap actually applied, which may be lower than the one requested."
    },
    "note": {
      "type": "string",
      "description": "How to narrow, when the cap hid rows. Empty when the response is the whole answer."
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PublicPageSummary"
      }
    }
  },
  "required": [
    "items",
    "limit",
    "note",
    "offset",
    "total"
  ],
  "$defs": {
    "PublicPageLocale": {
      "type": "object",
      "properties": {
        "locale": {
          "type": "string"
        },
        "urlPath": {
          "type": "string"
        }
      },
      "required": [
        "locale",
        "urlPath"
      ]
    },
    "PublicPageSummary": {
      "type": "object",
      "properties": {
        "urlPath": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "locales": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PublicPageLocale"
          },
          "readOnly": true,
          "description": "Every language the page serves in and the route it serves at there: the default language first at the page's own urlPath, then one entry per other language of the site the page exists in. A page written in one language alone lists that language at its own urlPath."
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time"
        },
        "liveUrl": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true
        }
      },
      "required": [
        "liveUrl",
        "locales",
        "status",
        "title",
        "updatedAt",
        "urlPath"
      ]
    }
  }
}