Skip to content

Commit

Permalink
Merge pull request #1067 from fjtirado/Add_data_to_event_properties
Browse files Browse the repository at this point in the history
Add data to EventProperties
  • Loading branch information
cdavernas authored Jan 14, 2025
2 parents 21c724e + 91c6cf4 commit a0e15df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dsl-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.*

Expand Down
6 changes: 6 additions & 0 deletions schema/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1292,6 +1292,12 @@ $defs:
- title: ExpressionDataSchema
$ref: '#/$defs/runtimeExpression'
description: An expression based event data schema.
data:
title: EventData
description: The event's payload data
anyOf:
- $ref: '#/$defs/runtimeExpression'
- {}
additionalProperties: true
eventConsumptionStrategy:
type: object
Expand Down

0 comments on commit a0e15df

Please sign in to comment.