{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pageweave-dev/json-schema/pageweave-dev-page-detail-schema.json",
  "title": "PageDetail",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pageweave-dev-openapi.json#/components/schemas/PageDetail",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "id",
    "path",
    "language",
    "indexable",
    "table_id",
    "table_slug",
    "placeholder_defaults",
    "title",
    "version_count",
    "latest_version_number",
    "created_at",
    "updated_at",
    "html_content",
    "markdown_content",
    "additional_html_head_html",
    "version_number",
    "incoming_redirects"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "path": {
      "type": "string"
    },
    "language": {
      "type": [
        "string",
        "null"
      ]
    },
    "indexable": {
      "type": "boolean"
    },
    "table_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "table_slug": {
      "type": [
        "string",
        "null"
      ]
    },
    "placeholder_defaults": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": "string"
      }
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "version_count": {
      "type": "integer",
      "minimum": 0
    },
    "latest_version_number": {
      "type": [
        "integer",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "html_content": {
      "type": [
        "string",
        "null"
      ]
    },
    "markdown_content": {
      "type": [
        "string",
        "null"
      ]
    },
    "additional_html_head_html": {
      "type": [
        "string",
        "null"
      ]
    },
    "version_number": {
      "type": [
        "integer",
        "null"
      ]
    },
    "incoming_redirects": {
      "type": "array",
      "maxItems": 100,
      "description": "Up to 100 incoming redirects, ordered by `source_path`. The\nredirects collection endpoint is the full list.\n",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "source_path",
          "status_code"
        ],
        "properties": {
          "source_path": {
            "type": "string"
          },
          "status_code": {
            "type": "integer",
            "enum": [
              301,
              302
            ]
          }
        }
      }
    }
  }
}