Skip to content

Commit ab877ca

Browse files
fjtiradocdavernas
andcommitted
Update schema/workflow.yaml
Co-authored-by: Charles d'Avernas <charles.davernas@neuroglia.io> Signed-off-by: Francisco Javier Tirado Sarti <ftirados@redhat.com>
1 parent a96f613 commit ab877ca

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

dsl-reference.md

Lines changed: 1 addition & 1 deletion
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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,10 +1294,10 @@ $defs:
12941294
description: An expression based event data schema.
12951295
data:
12961296
title: EventData
1297-
description: Allow filtering by data content
1298-
oneOf:
1299-
- type: string
1300-
- type: object
1297+
description: The event's payload data
1298+
anyOf:
1299+
- $ref: '#/$defs/runtimeExpression'
1300+
- type: any
13011301
additionalProperties: true
13021302
eventConsumptionStrategy:
13031303
type: object

0 commit comments

Comments
 (0)