Skip to content

fix(workflow-code): report a required field written as '' as missing - #10691

Merged
waleedlatif1 merged 1 commit into
stagingfrom
fix/wac-required-empty-string
Dec 3, 2026
Merged

waleedlatif1 merged 1 commit into
stagingfrom
fix/wac-required-empty-string

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • check treated any written field as filled, so a required field written as '' (which sim workflows source get prints for a required dropdown stored empty) passed without W_REQUIRED_MISSING, while the runtime (collectBlockFieldIssues) refuses it as missing.
  • The required-field pass now counts a member as holding a value only when it is written and not ''; SYNTAX.md and the generated diagnostics page say so.

Test plan

  • New checks.test.ts case fails on the old code and passes now.
  • packages/workflow-code suite (843) and apps/sim/lib/workflows/code suite (289, including the registry-corpus sdk-examples test) pass.
  • check:workflow-code-docs up to date.

The runtime treats a stored '' as a missing required value, but check counted any written field as filled, so source get could print x: '' for a required dropdown and check passed a workflow that then failed to run.
@vercel

vercel Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Dec 3, 2026 1:11am UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 5 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@waleedlatif1
waleedlatif1 merged commit d1bb321 into staging Dec 3, 2026
86 checks passed
@waleedlatif1
waleedlatif1 deleted the fix/wac-required-empty-string branch December 3, 2026 01:20

This branch was successfully deployed

1 active deployment
Preview — 98003709 Deployed Dec 3, 2026 by vercel[bot]
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