Skip to main content
← Back to list
01Issue
FeatureClosedSwamp CLI
AssigneesNone

Relationships

#1509 validateGlobalArgInputRefs checks step-level inputs but step schema rejects 'inputs' key

Opened by stack72 · 8/2/2026

Summary

validateGlobalArgInputRefs was changed (likely swamp#2046) to resolve ${{ inputs.* }} references in model globalArguments against step-level inputs instead of workflow-level inputs. However, the step schema does not accept inputs as a valid key, making it impossible to satisfy this validation.

Reproduction

Given a model with globalArguments referencing ${{ inputs.recordHost }} and a workflow that declares recordHost in its workflow-level inputs schema:

swamp workflow validate <workflow> --json

Expected: Validation passes (the referenced input is declared at the workflow level and available at runtime).

Actual: Validation fails with "Model definition references input(s) not supplied by step: recordHost".

Adding inputs: to the step block (to explicitly wire workflow inputs through) causes schema validation to fail: "Unknown key 'inputs' on step 'dns-step'. Valid step keys: name, description, task, forEach, dependsOn, weight, concurrency, dataOutputOverrides, allowFailure, target, labels, platform, queueTimeout, guard".

So neither approach works — the validation checks for step inputs that cannot be provided.

Impact

Two UAT tests fail in swamp-uat (validate_input_refs_test.ts):

  • "swamp workflow validate passes when all referenced inputs are declared"
  • "swamp workflow validate handles bracket notation input references"

Versions

  • swamp 20260802.222309.0-sha.49436e6b (CI) — fails
  • swamp 20260802.220546.0-sha.9d099fee (prior release) — passes
  • swamp main (local build) — fails

Automoved by swampadmin from https://github.com/swamp-club/swamp/issues/2048

02Bog Flow
OPENTRIAGEDIN PROGRESSCLOSED

Closed

8/2/2026, 11:04:47 PM

No activity in this phase yet.

03Sludge Pulse
Editable. Press Enter to edit.

stack72 commented 8/2/2026, 11:04:51 PM

Incorrectly opened!

Sign in to post a ripple.