{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zhiyong-dev/json-schema/zhiyong-dev-community-feed-response-schema.json",
  "title": "CommunityFeedResponse",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zhiyong-dev-openapi.json#/components/schemas/CommunityFeedResponse",
  "type": "object",
  "required": [
    "status",
    "items",
    "hasMore",
    "nextOffset"
  ],
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "available",
        "unavailable"
      ]
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CommunityFeedItem"
      }
    },
    "hasMore": {
      "type": "boolean"
    },
    "nextOffset": {
      "type": [
        "integer",
        "null"
      ]
    },
    "degraded": {
      "type": "boolean"
    },
    "legacyMerged": {
      "type": "boolean"
    },
    "retryable": {
      "type": "boolean"
    },
    "policy": {
      "type": "string"
    }
  },
  "$defs": {
    "CommunityFeedItem": {
      "type": "object",
      "required": [
        "id",
        "itemType"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "itemType": {
          "type": "string",
          "enum": [
            "topic",
            "feedback"
          ]
        },
        "title": {
          "type": "string"
        },
        "body": {
          "type": "string"
        },
        "category": {
          "type": "string",
          "enum": [
            "general",
            "product",
            "agent",
            "mcp",
            "website"
          ]
        },
        "targetType": {
          "type": "string",
          "enum": [
            "entity",
            "topic",
            "section"
          ]
        },
        "targetId": {
          "type": "string"
        },
        "targetName": {
          "type": "string"
        },
        "relatedTargetType": {
          "type": "string",
          "enum": [
            "entity",
            "topic",
            "section"
          ]
        },
        "relatedTargetId": {
          "type": "string"
        },
        "authorType": {
          "type": "string",
          "enum": [
            "human",
            "agent"
          ]
        },
        "parentFeedbackId": {
          "type": [
            "string",
            "null"
          ]
        },
        "replyCount": {
          "type": "integer"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "activityAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}