From 91c6cf49d8c1c3303194de65648ce9a350c96461 Mon Sep 17 00:00:00 2001 From: Francisco Javier Tirado Sarti <65240126+fjtirado@users.noreply.github.com> Date: Tue, 14 Jan 2025 18:07:50 +0100 Subject: [PATCH] Update schema/workflow.yaml Co-authored-by: Charles d'Avernas Signed-off-by: Francisco Javier Tirado Sarti --- dsl-reference.md | 2 +- schema/workflow.yaml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dsl-reference.md b/dsl-reference.md index e898e316..789ca497 100644 --- a/dsl-reference.md +++ b/dsl-reference.md @@ -1597,7 +1597,7 @@ An event object typically includes details such as the event type, source, times | subject | `string` | `no` | Describes the subject of the event in the context of the event producer. | | datacontenttype | `string` | `no` | Content type of `data` value. If omitted, it implies the `data` is a JSON value conforming to the "application/json" media type. | | dataschema | `string` | `no` | An URI formatted string, or [runtime expression](dsl.md#runtime-expressions), that identifies the schema that `data` adheres to. | -| data | `object` | `no` | The event payload. | +| data | `any` | `no` | The event payload. | *Additional properties can be supplied, see the Cloud Events specification [documentation](https://github.com/cloudevents/spec/blob/main/cloudevents/spec.md#extension-context-attributes) for more info.* diff --git a/schema/workflow.yaml b/schema/workflow.yaml index 1c8b9498..daaedc41 100644 --- a/schema/workflow.yaml +++ b/schema/workflow.yaml @@ -1294,10 +1294,10 @@ $defs: description: An expression based event data schema. data: title: EventData - description: Allow filtering by data content - oneOf: - - type: string - - type: object + description: The event's payload data + anyOf: + - $ref: '#/$defs/runtimeExpression' + - {} additionalProperties: true eventConsumptionStrategy: type: object