{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zhiyong-dev/json-schema/zhiyong-dev-community-thread-response-schema.json",
  "title": "CommunityThreadResponse",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zhiyong-dev-openapi.json#/components/schemas/CommunityThreadResponse",
  "type": "object",
  "required": [
    "targetType",
    "targetId",
    "feedback",
    "hasMore",
    "nextOffset",
    "status"
  ],
  "properties": {
    "targetType": {
      "type": "string",
      "enum": [
        "entity",
        "topic",
        "section"
      ]
    },
    "targetId": {
      "type": "string"
    },
    "targetName": {
      "type": "string"
    },
    "entityId": {
      "type": "string"
    },
    "entityName": {
      "type": "string"
    },
    "topic": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true
    },
    "feedback": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "hasMore": {
      "type": "boolean"
    },
    "nextOffset": {
      "type": [
        "integer",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "available",
        "degraded"
      ]
    },
    "degraded": {
      "type": "boolean"
    },
    "storage": {
      "type": "string"
    },
    "reason": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}