{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-event-grid/json-schema/azure-event-grid-receive-result-schema.json",
  "title": "ReceiveResult",
  "description": "Details of the Receive operation response.",
  "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/ReceiveResult",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "Array of receive responses, one per cloud event.",
      "items": {
        "$ref": "#/$defs/ReceiveDetails"
      },
      "readOnly": true
    }
  },
  "required": [
    "value"
  ],
  "$defs": {
    "BrokerProperties": {
      "type": "object",
      "description": "Properties of the Event Broker operation.",
      "properties": {
        "lockToken": {
          "type": "string",
          "description": "The token of the lock on the event."
        },
        "deliveryCount": {
          "type": "integer",
          "format": "int32",
          "description": "The attempt count for delivering the event."
        }
      },
      "required": [
        "lockToken",
        "deliveryCount"
      ]
    },
    "CloudEvent": {
      "type": "object",
      "description": "Properties of an event published to an Azure Messaging EventGrid Namespace topic using the CloudEvent 1.0 Schema.",
      "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"
      ]
    },
    "ReceiveDetails": {
      "type": "object",
      "description": "Receive operation details per Cloud Event.",
      "properties": {
        "brokerProperties": {
          "$ref": "#/$defs/BrokerProperties"
        },
        "event": {
          "$ref": "#/$defs/CloudEvent"
        }
      },
      "required": [
        "brokerProperties",
        "event"
      ]
    }
  }
}