Skip to content

Conversation

@arminhammer
Copy link
Contributor

Many thanks for submitting your Pull Request ❤️!

What this PR does / why we need it:
This PR does two things:

  1. This addresses the issue outlined in issue Confusion about the extension before & after types specification#1135, where the extensions in a workflow are supposed to be an array, as well as the before and after properties. This PR converts these HashMaps into Vec to align with the spec.

I added a unit test that copies https://github.com/serverlessworkflow/specification/blob/main/examples/mock-service-extension.yaml verbatim and tries to create a WorkflowDefinition from it. This test fails without the fix, and succeeds with the fix.

  1. The sdk is missing stdin and arguments from the ContainerProcessDefinition, despite being defined in the spec. This PR adds those properties to the type.

Special notes for reviewers:

Additional information (if needed):

Signed-off-by: Armin Graf <arminhammer@gmail.com>
Signed-off-by: Armin Graf <arminhammer@gmail.com>
Copy link
Member

@cdavernas cdavernas left a comment

Choose a reason for hiding this comment

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

LGTM! Cheers!

@cdavernas cdavernas merged commit 12d7c5b into serverlessworkflow:main Dec 12, 2025
3 checks 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.

2 participants