{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/alphabazaar-ai/json-schema/alphabazaar-ai-comment-list-response-schema.json",
  "title": "CommentListResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/alphabazaar-ai-signals-api-openapi.yml#/components/schemas/CommentListResponse",
  "properties": {
    "comments": {
      "items": {
        "$ref": "#/$defs/SignalCommentResponse"
      },
      "type": "array",
      "title": "Comments"
    },
    "total_count": {
      "type": "integer",
      "title": "Total Count"
    },
    "has_more": {
      "type": "boolean",
      "title": "Has More"
    },
    "next_offset": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Next Offset"
    }
  },
  "type": "object",
  "required": [
    "comments",
    "total_count",
    "has_more",
    "next_offset"
  ],
  "$defs": {
    "SignalCommentResponse": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "signal_id": {
          "type": "string",
          "title": "Signal Id"
        },
        "user_id": {
          "type": "string",
          "title": "User Id"
        },
        "username": {
          "type": "string",
          "title": "Username"
        },
        "content": {
          "type": "string",
          "title": "Content"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "title": "Updated At"
        },
        "is_edited": {
          "type": "boolean",
          "title": "Is Edited"
        },
        "is_publisher": {
          "type": "boolean",
          "title": "Is Publisher"
        },
        "like_count": {
          "type": "integer",
          "title": "Like Count"
        },
        "dislike_count": {
          "type": "integer",
          "title": "Dislike Count"
        },
        "user_reaction": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "User Reaction"
        },
        "can_edit": {
          "type": "boolean",
          "title": "Can Edit"
        },
        "can_delete": {
          "type": "boolean",
          "title": "Can Delete"
        }
      },
      "type": "object",
      "required": [
        "id",
        "signal_id",
        "user_id",
        "username",
        "content",
        "created_at",
        "updated_at",
        "is_edited",
        "is_publisher",
        "like_count",
        "dislike_count",
        "user_reaction",
        "can_edit",
        "can_delete"
      ],
      "title": "SignalCommentResponse"
    }
  }
}