{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eightfold-ai/json-schema/eightfold-ai-comment-schema-schema.json",
  "title": "CommentSchema",
  "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/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"
    }
  }
}