{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clarifymedical/json-schema/clarifymedical-create-comment-dto-schema.json",
  "title": "CreateCommentDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clarifymedical-comments-api-openapi.yml#/components/schemas/CreateCommentDto",
  "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"
    },
    "_event_id": {
      "type": "string",
      "format": "uuid",
      "description": "An optional client-supplied ID for the comment creation event; generated by the server when omitted."
    }
  },
  "required": [
    "message",
    "owner_id",
    "entity"
  ]
}