{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-event-grid/json-schema/azure-event-grid-cloud-event-schema.json",
  "title": "CloudEvent",
  "description": "Properties of an event published to an Azure Messaging EventGrid Namespace topic using the CloudEvent 1.0 Schema.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-event-grid-namespace-dataplane-api-openapi.yml#/components/schemas/CloudEvent",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "An identifier for the event. The combination of id and source must be unique for each distinct event."
    },
    "source": {
      "type": "string",
      "description": "Identifies the context in which an event happened. The combination of id and source must be unique for each distinct event."
    },
    "data": {
      "description": "Event data specific to the event type."
    },
    "data_base64": {
      "type": "string",
      "format": "byte",
      "description": "Event data specific to the event type, encoded as a base64 string."
    },
    "type": {
      "type": "string",
      "description": "Type of event related to the originating occurrence."
    },
    "time": {
      "type": "string",
      "format": "date-time",
      "description": "The time (in UTC) the event was generated, in RFC3339 format."
    },
    "specversion": {
      "type": "string",
      "description": "The version of the CloudEvents specification which the event uses."
    },
    "dataschema": {
      "type": "string",
      "description": "Identifies the schema that data adheres to."
    },
    "datacontenttype": {
      "type": "string",
      "description": "Content type of data value."
    },
    "subject": {
      "type": "string",
      "description": "This describes the subject of the event in the context of the event producer (identified by source)."
    }
  },
  "required": [
    "id",
    "source",
    "type",
    "specversion"
  ]
}