{
  "required": [
    "entityId",
    "entityType",
    "eventType",
    "id",
    "timestamp"
  ],
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "eventType": {
      "type": "string",
      "enum": [
        "entityCreated",
        "entityUpdated",
        "entityFieldsChanged",
        "entityNoChange",
        "entitySoftDeleted",
        "entityDeleted",
        "entityRestored",
        "threadCreated",
        "threadUpdated",
        "postCreated",
        "postUpdated",
        "taskResolved",
        "taskClosed",
        "logicalTestCaseAdded",
        "suggestionCreated",
        "suggestionUpdated",
        "suggestionAccepted",
        "suggestionRejected",
        "suggestionDeleted",
        "userLogin",
        "userLogout"
      ]
    },
    "entityType": {
      "type": "string"
    },
    "entityId": {
      "type": "string",
      "format": "uuid"
    },
    "domains": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      }
    },
    "entityFullyQualifiedName": {
      "type": "string"
    },
    "previousVersion": {
      "type": "number",
      "format": "double"
    },
    "currentVersion": {
      "type": "number",
      "format": "double"
    },
    "userName": {
      "type": "string"
    },
    "impersonatedBy": {
      "type": "string"
    },
    "timestamp": {
      "type": "integer",
      "format": "int64"
    },
    "changeDescription": {
      "$ref": "#/components/schemas/ChangeDescription"
    },
    "incrementalChangeDescription": {
      "$ref": "#/components/schemas/ChangeDescription"
    },
    "entity": {
      "type": "object"
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/openmetadata/main/json-schema/changeevent.json"
}