Skip to content

Update produceevent.json #560

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 28, 2025
Merged

Update produceevent.json #560

merged 1 commit into from
Apr 28, 2025

Conversation

fjtirado
Copy link
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
@fjtirado fjtirado force-pushed the change-data-from-string-to-object branch from d7ab67e to 3a6818a Compare April 25, 2025 18:33
@@ -8,7 +8,8 @@
"minLength": 1
},
"data": {
"type": "string",
"type": "object",
Copy link

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

Choose a reason for hiding this comment

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

Copy link
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
1 check passed
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