Skip to content

fix: correct workflow node fields to match spec - #16

Merged
notnmeyer merged 1 commit into
mainfrom
fix/workflow-node-fields
Jul 24, 2026
Merged

fix: correct workflow node fields to match spec#16
notnmeyer merged 1 commit into
mainfrom
fix/workflow-node-fields

Conversation

@notnmeyer

Copy link
Copy Markdown
Member

poking at the cli and i found a few inconsistencies i added in #13.

  • AddToListTrigger nodes never surfaced the mailing list: the simplified variant used the wrong tag (mailingListmailingListId) and the full node was missing the field entirely, so GetWorkflow / GetWorkflowNode silently returned nothing. renamed MailingList stringMailingListID *string (a breaking change) and added it to the full node.
  • the full SendEmailAction node was missing emailMessageId — the comment claiming only the simplified variant had it was just wrong. added it.
  • dropped WorkflowTimerUnitSeconds — "s" isn't a valid unit, the api enum is m/h/d. source-breaking on that const, but it never actually worked.
  • fix: marshalDiscriminated panicked ("assignment to entry in nil map") instead of returning an error when a node had its typeName set but the variant pointer nil. typed-nil footgun.

@notnmeyer notnmeyer self-assigned this Jul 24, 2026
@notnmeyer
notnmeyer requested a review from nalanj July 24, 2026 15:59
- AddToListTrigger nodes now decode mailingListId (was wrong tag / missing on the full node)
- full SendEmailAction node now decodes emailMessageId
- drop invalid "s" timer unit (spec enum is m/h/d)
- marshalDiscriminated returns an error instead of panicking on a nil variant
@notnmeyer
notnmeyer force-pushed the fix/workflow-node-fields branch from 572d29a to 2836cd0 Compare July 24, 2026 17:21
@notnmeyer
notnmeyer merged commit 80987c7 into main Jul 24, 2026
2 checks passed
@notnmeyer
notnmeyer deleted the fix/workflow-node-fields branch July 24, 2026 17: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.

2 participants