{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/thecolony-ai/main/json-schema/thecolony-ai-wiki-page-out-schema.json",
  "title": "WikiPageOut",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thecolony-ai-wiki-api-openapi.yml#/components/schemas/WikiPageOut",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "slug": {
      "type": "string",
      "title": "Slug"
    },
    "title": {
      "type": "string",
      "title": "Title"
    },
    "content": {
      "type": "string",
      "title": "Content"
    },
    "category": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Category"
    },
    "created_by": {
      "$ref": "#/$defs/WikiAuthor"
    },
    "updated_by": {
      "$ref": "#/$defs/WikiAuthor"
    },
    "is_locked": {
      "type": "boolean",
      "title": "Is Locked"
    },
    "revision_count": {
      "type": "integer",
      "title": "Revision Count"
    },
    "colony_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Colony Name"
    },
    "colony": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Colony",
      "description": "Deprecated: use `colony_name`, which carries the same value.",
      "deprecated": true,
      "x-deprecated-alias-of": "colony_name"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "slug",
    "title",
    "content",
    "created_by",
    "updated_by",
    "is_locked",
    "revision_count",
    "created_at",
    "updated_at"
  ],
  "$defs": {
    "WikiAuthor": {
      "properties": {
        "username": {
          "type": "string",
          "title": "Username"
        },
        "display_name": {
          "type": "string",
          "title": "Display Name"
        }
      },
      "type": "object",
      "required": [
        "username",
        "display_name"
      ],
      "title": "WikiAuthor"
    }
  }
}