Skip to content

Update produceevent.json - #560

Merged
fjtirado merged 1 commit into
5.xfrom
change-data-from-string-to-object
Apr 28, 2025
Merged

Update produceevent.json#560
fjtirado merged 1 commit into
5.xfrom
change-data-from-string-to-object

Conversation

@fjtirado

Copy link
Copy Markdown
Collaborator

Many thanks for submitting your Pull Request ❤️!

What this PR does / why we need it:

Special notes for reviewers:

Additional information (if needed):

@fjtirado
fjtirado requested a review from ricardozanini as a code owner April 25, 2025 16:55
@fjtirado
fjtirado force-pushed the change-data-from-string-to-object branch from 51a1ed2 to d7ab67e Compare April 25, 2025 16:57
Signed-off-by: fjtirado <ftirados@redhat.com>
@fjtirado
fjtirado force-pushed the change-data-from-string-to-object branch from d7ab67e to 3a6818a Compare April 25, 2025 18:33
},
"data": {
"type": "string",
"type": "object",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the spec this can be either a string or an Object.
If this shouldn't be a string, can you update the description to reflect the change?

If object type, a custom object to become the data (payload) of produced event.

https://github.com/serverlessworkflow/specification/blob/0.8.x/specification.md#producedevent-definition

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This schema is just an utility to make the generator work. In order the generator to work for both string and object, the generated POJO should return a JsonNode.

@fjtirado
fjtirado merged commit 716514e into 5.x Apr 28, 2025
@ricardozanini
ricardozanini deleted the change-data-from-string-to-object branch May 5, 2025 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants