Skip to content

Conversation

@fmelosilva
Copy link

Add the 'metadata' field to WorkflowDef to support custom metadata that Conductor server returns in workflow definitions.

The Conductor API includes a metadata field in workflow definitions for storing UI-specific information, but the Go SDK's WorkflowDef struct was missing this field, causing it to be ignored during JSON unmarshaling.

Add the 'metadata' field to WorkflowDef to support custom metadata
that Conductor server returns in workflow definitions.

The Conductor API includes a metadata field in workflow definitions
for storing UI-specific information, but the Go SDK's WorkflowDef
struct was missing this field, causing it to be ignored during
JSON unmarshaling.

This change:
- Adds Metadata map[string]interface{} field with json:"metadata,omitempty" tag
- Positioned after Variables field to keep related fields together
- Maintains backward compatibility with omitempty tag

Fixes: Applications can now read workflow metadata without custom wrappers
@fmelosilva fmelosilva marked this pull request as ready for review January 7, 2026 03:25
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.

1 participant