Skip to content

Commit a0e15df

Browse files
authored
Merge pull request serverlessworkflow#1067 from fjtirado/Add_data_to_event_properties
Add data to EventProperties
2 parents 21c724e + 91c6cf4 commit a0e15df

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

dsl-reference.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1597,7 +1597,7 @@ An event object typically includes details such as the event type, source, times
15971597
| subject | `string` | `no` | Describes the subject of the event in the context of the event producer. |
15981598
| 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. |
15991599
| dataschema | `string` | `no` | An URI formatted string, or [runtime expression](dsl.md#runtime-expressions), that identifies the schema that `data` adheres to. |
1600-
| data | `object` | `no` | The event payload. |
1600+
| data | `any` | `no` | The event payload. |
16011601

16021602
*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.*
16031603

schema/workflow.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -1292,6 +1292,12 @@ $defs:
12921292
- title: ExpressionDataSchema
12931293
$ref: '#/$defs/runtimeExpression'
12941294
description: An expression based event data schema.
1295+
data:
1296+
title: EventData
1297+
description: The event's payload data
1298+
anyOf:
1299+
- $ref: '#/$defs/runtimeExpression'
1300+
- {}
12951301
additionalProperties: true
12961302
eventConsumptionStrategy:
12971303
type: object

0 commit comments

Comments
 (0)