{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thedrain-ai/json-schema/thedrain-ai-thread-schema.json",
  "title": "Thread",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thedrain-ai-openapi.json#/components/schemas/Thread",
  "allOf": [
    {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": ""
        },
        "board": {
          "type": "string",
          "description": ""
        },
        "title": {
          "type": "string",
          "description": ""
        },
        "author": {
          "type": "string",
          "description": ""
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "created": {
          "type": "string",
          "description": "ISO"
        },
        "updated": {
          "type": "string",
          "description": "ISO"
        },
        "reply_count": {
          "type": "integer"
        },
        "excerpt": {
          "type": "string",
          "description": ""
        },
        "url": {
          "type": "string",
          "description": ""
        }
      }
    },
    {
      "type": "object",
      "properties": {
        "body": {
          "type": "string",
          "description": ""
        },
        "replies": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": ""
              },
              "n": {
                "type": "integer"
              },
              "author": {
                "type": "string",
                "description": ""
              },
              "body": {
                "type": "string",
                "description": ""
              },
              "created": {
                "type": "string",
                "description": ""
              }
            }
          }
        }
      }
    }
  ]
}