From b3499f8b579e195c6763b35093cd9ec42e2d5ad1 Mon Sep 17 00:00:00 2001 From: Charles d'Avernas Date: Thu, 9 Jan 2025 11:28:40 +0100 Subject: [PATCH] Rename `emit.to` to `emit.cc`, as requested by comments Signed-off-by: Charles d'Avernas --- dsl-reference.md | 2 +- schema/workflow.yaml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dsl-reference.md b/dsl-reference.md index 02d9ff3d..45fe74b4 100644 --- a/dsl-reference.md +++ b/dsl-reference.md @@ -532,7 +532,7 @@ Allows workflows to publish events to event brokers or messaging systems, facili | Name | Type | Required | Description | |:--|:---:|:---:|:---| | emit.event | [`eventProperties`](#event-properties) | `yes` | Defines the event to emit. | -| emit.to | [`endpoint`](#endpoint) | `no` | Specifies an additional endpoint for emitting the event. While the runtime's default cloud event endpoint remains the primary destination, setting this property ensures that the event is also published to the specified endpoint. Ideally, this property is left unset so that event delivery relies solely on the runtime's configured endpoint, but when provided, the event will be sent to both endpoints concurrently. | +| emit.cc | [`endpoint`](#endpoint) | `no` | Specifies an additional endpoint for emitting a carbon copy of the event. While the runtime's default cloud event endpoint remains the primary destination, setting this property ensures that the event is also published to the specified endpoint. Ideally, this property is left unset so that event delivery relies solely on the runtime's configured endpoint, but when provided, the event will be sent to both endpoints concurrently. | ##### Examples diff --git a/schema/workflow.yaml b/schema/workflow.yaml index 3b2533c0..8fcf0f57 100644 --- a/schema/workflow.yaml +++ b/schema/workflow.yaml @@ -491,10 +491,10 @@ $defs: description: Defines the properties of event to emit. required: [ source, type ] additionalProperties: true - to: + cc: $ref: '#/$defs/endpoint' - title: EmitEndpointDefinition - description: Defines the additional endpoint, if any, to emit the event to. + title: EmitCarbonCopyDefinition + description: Defines an additional endpoint, if any, to publish an event's carbon copy to. required: [ event ] forTask: type: object