{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clarifymedical/json-schema/clarifymedical-comment-row-schema.json",
  "title": "CommentRow",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clarifymedical-comments-api-openapi.yml#/components/schemas/CommentRow",
  "type": "object",
  "properties": {
    "_id": {
      "type": "string",
      "format": "uuid",
      "description": "The unique ID of the comment. Generated by the server when omitted on create."
    },
    "message": {
      "description": "The comment body, as a non-empty array of rich-text (BlockNote) nodes.",
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": {}
      }
    },
    "owner_id": {
      "type": "string",
      "description": "The unique ID of the record the comment is attached to."
    },
    "entity": {
      "description": "The object type of the record the comment is attached to. Must be an object that supports comments (e.g. `person`, `deal`, `task`, or a custom object such as `c_dog`). Lead-finder records (`tam_person`, `tam_company`) cannot be commented on.",
      "type": "string"
    },
    "_created_at": {
      "type": "string",
      "format": "date-time",
      "description": "The time the comment was created."
    },
    "_created_by": {
      "type": "string",
      "description": "The ID of the user or agent that created the comment."
    },
    "_updated_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "The time the comment was last edited, or `null` if it has never been edited."
    },
    "_updated_by": {
      "type": [
        "string",
        "null"
      ],
      "description": "The ID of the user or agent that last edited the comment, or `null` if it has never been edited."
    }
  },
  "required": [
    "message",
    "owner_id",
    "entity",
    "_created_at",
    "_created_by",
    "_updated_at",
    "_updated_by"
  ]
}