{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/EventStreamCloudEvent",
  "title": "EventStreamCloudEvent",
  "type": "object",
  "description": "Event content. This will only be set if delivery failed.",
  "additionalProperties": false,
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the event",
      "minLength": 26,
      "maxLength": 26,
      "format": "event-id"
    },
    "source": {
      "type": "string",
      "description": "Where the event originated"
    },
    "specversion": {
      "type": "string",
      "description": "Version of CloudEvents spec"
    },
    "type": {
      "type": "string",
      "description": "Type of the event (e.g., user.created)"
    },
    "time": {
      "type": "string",
      "description": "Timestamp at which the event was generated",
      "format": "date-time"
    },
    "data": {
      "type": "string",
      "description": "Event contents encoded as a string."
    }
  }
}