{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/influence-so/json-schema/influence-so-page-schema.json",
  "title": "Page",
  "description": "A page's index entry plus its full Markdown body.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/influence-so-openapi.json#/components/schemas/Page",
  "allOf": [
    {
      "$ref": "#/$defs/PageSummary"
    },
    {
      "properties": {
        "markdown": {
          "description": "The page as agent Markdown: frontmatter included, components downleveled to plain Markdown.",
          "type": "string"
        }
      },
      "required": [
        "markdown"
      ],
      "type": "object"
    }
  ],
  "$defs": {
    "PageSummary": {
      "properties": {
        "contentType": {
          "description": "The page's content type (frontmatter `type`).",
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "facets": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "Facet values the site declares for the page's content type (`content.types.<type>.facets`), key → value.",
          "type": "object"
        },
        "json": {
          "description": "This page's JSON representation (the `getPage` operation).",
          "format": "uri-reference",
          "type": "string"
        },
        "lastModified": {
          "description": "ISO 8601 last-modified date, when known.",
          "type": [
            "string",
            "null"
          ]
        },
        "locale": {
          "description": "The page's locale code.",
          "type": "string"
        },
        "markdownUrl": {
          "description": "The page's raw-Markdown mirror (the `getPageMarkdown` operation).",
          "format": "uri-reference",
          "type": "string"
        },
        "route": {
          "description": "The page's route (`/guides/install`); the key every other operation takes.",
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "url": {
          "description": "Where the rendered page is served.",
          "format": "uri-reference",
          "type": "string"
        },
        "version": {
          "description": "Docs version the page belongs to on a versioned site: `\"\"` for the current docs, else an archived version id. Absent on unversioned sites.",
          "type": "string"
        }
      },
      "required": [
        "contentType",
        "json",
        "lastModified",
        "locale",
        "markdownUrl",
        "route",
        "title",
        "url"
      ],
      "type": "object"
    }
  }
}