{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/monite/json-schema/monite-comment-resource-schema.json",
  "title": "CommentResource",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/monite-comments-api-openapi.yml#/components/schemas/CommentResource",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "created_by_entity_user_id": {
      "type": "string",
      "format": "uuid"
    },
    "entity_id": {
      "type": "string",
      "format": "uuid"
    },
    "object_id": {
      "type": "string",
      "format": "uuid"
    },
    "object_type": {
      "type": "string"
    },
    "reply_to_entity_user_id": {
      "type": "string",
      "format": "uuid"
    },
    "status": {
      "$ref": "#/$defs/StatusEnum"
    },
    "text": {
      "type": "string"
    }
  },
  "type": "object",
  "required": [
    "id",
    "created_by_entity_user_id",
    "entity_id",
    "object_id",
    "object_type",
    "status",
    "text"
  ],
  "$defs": {
    "StatusEnum": {
      "type": "string",
      "enum": [
        "active",
        "deleted"
      ]
    }
  }
}