{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eightfold-ai/json-schema/eightfold-ai-fetch-comments-by-external-entity-ids-response-schema-schema.json",
  "title": "FetchCommentsByExternalEntityIdsResponseSchema",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eightfold-ai-comment-api-openapi.yml#/components/schemas/FetchCommentsByExternalEntityIdsResponseSchema",
  "type": "object",
  "properties": {
    "comments": {
      "readOnly": true,
      "description": "List of comments",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/CommentSchema"
      }
    },
    "entityId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "readOnly": true,
      "description": "Entity ID"
    },
    "entityType": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "Entity Type"
    },
    "externalEntityId": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "External Entity ID"
    }
  },
  "$defs": {
    "CommentSchema": {
      "type": "object",
      "properties": {
        "createdAt": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "Comment creation timestamp"
        },
        "entityType": {
          "type": [
            "string",
            "null"
          ],
          "description": "Type of entity the comment is associated with"
        },
        "commentId": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "readOnly": true,
          "description": "Comment ID"
        },
        "isPrivate": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Whether the comment is private"
        },
        "entityId": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "ID of the entity the comment is associated with"
        },
        "createdBy": {
          "type": [
            "string",
            "null"
          ],
          "description": "Email of the user who created the comment"
        },
        "parentId": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "ID of the parent comment"
        },
        "groupId": {
          "type": [
            "string",
            "null"
          ],
          "description": "Group ID"
        },
        "updatedAt": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "Comment update timestamp"
        },
        "comment": {
          "type": [
            "string",
            "null"
          ],
          "description": "Comment content in text (HTML) format"
        }
      }
    }
  }
}