Apache EventMesh · Schema
CloudEvent
A CloudEvents v1.0 compliant event
ApacheCloudEventsEvent-DrivenMessagingOpen SourcePub-SubServerless
Properties
| Name | Type | Description |
|---|---|---|
| specversion | string | CloudEvents specification version |
| id | string | Unique event identifier |
| source | string | Event source identifier |
| type | string | Event type |
| datacontenttype | string | Content type of the data attribute |
| dataschema | string | Schema for the data attribute |
| subject | string | Subject of the event in the context of the source |
| time | string | Timestamp of the event |
| data | object | Event payload |
| data_base64 | string | Base64 encoded event payload |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/apache-event-mesh/refs/heads/main/json-schema/eventmesh-admin-cloud-event-schema.json",
"title": "CloudEvent",
"description": "A CloudEvents v1.0 compliant event",
"type": "object",
"properties": {
"specversion": {
"type": "string",
"const": "1.0",
"description": "CloudEvents specification version"
},
"id": {
"type": "string",
"description": "Unique event identifier"
},
"source": {
"type": "string",
"format": "uri-reference",
"description": "Event source identifier"
},
"type": {
"type": "string",
"description": "Event type"
},
"datacontenttype": {
"type": "string",
"description": "Content type of the data attribute"
},
"dataschema": {
"type": "string",
"format": "uri",
"description": "Schema for the data attribute"
},
"subject": {
"type": "string",
"description": "Subject of the event in the context of the source"
},
"time": {
"type": "string",
"format": "date-time",
"description": "Timestamp of the event"
},
"data": {
"description": "Event payload"
},
"data_base64": {
"type": "string",
"format": "byte",
"description": "Base64 encoded event payload"
}
},
"required": [
"specversion",
"id",
"source",
"type"
]
}