{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/harness/main/json-schema/harness-anomaly-comment-schema.json",
  "title": "AnomalyComment",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/harness-anomaly-comments-api-openapi.yml#/components/schemas/AnomalyComment",
  "required": [
    "accountId",
    "anomalyId"
  ],
  "type": "object",
  "properties": {
    "uuid": {
      "type": "string"
    },
    "accountId": {
      "type": "string"
    },
    "anomalyId": {
      "type": "string",
      "description": "Identifier of the anomaly this comment belongs to"
    },
    "comment": {
      "type": "string"
    },
    "createdBy": {
      "$ref": "#/$defs/EmbeddedUser"
    },
    "createdAt": {
      "type": "integer",
      "format": "int64"
    }
  },
  "$defs": {
    "EmbeddedUser": {
      "type": "object",
      "properties": {
        "uuid": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "externalUserId": {
          "type": "string"
        }
      }
    }
  }
}