A declared input delivers to the port its entry binds, or nowhere
The manifest is a mapping, and this is the mapping it performs.
The rule
Normative: this is the rule
- A value supplied under a declared input name MUST be delivered to the workflow's initial data under the node identifier and port name that input's manifest entry binds.
- A value supplied for an unbound input MUST be checked as any declared input's value is (MAN-15, MAN-16).
- It MUST then be delivered to no node, and its absence of a binding MUST NOT be reported as a missing node.
Why
Fixtures
Test cases whose outcome this rule decides. A case compares absent, null and empty members exactly; the fixtures README defines each operation. Where a case and the rule disagree, the rule is right.
An empty value supplied for a bound input is delivered as sent resolve-launch-inputs
{ "given": { "inputs": [ { "name": "topic", "node_id": "n1", "port": "text" } ], "supplied": { "topic": "" } }, "expect": { "initialData": { "n1": { "text": "" } } } }A value for an unbound input is accepted and delivered nowhere resolve-launch-inputs
{ "given": { "inputs": [ { "name": "topic", "schema": { "type": "string", "x-data-type": "string" } } ], "supplied": { "topic": "x" } }, "expect": { "initialData": {} } }An unbound required input is still required resolve-launch-inputs
{ "given": { "inputs": [ { "name": "topic", "schema": { "type": "string" }, "required": true } ], "supplied": {} }, "expect": { "refused": { "stage": "missing", "inputs": [ "topic" ] } } }A value for an unbound input is checked against its schema resolve-launch-inputs
{ "given": { "inputs": [ { "name": "topic", "schema": { "type": "string" } } ], "supplied": { "topic": 5 } }, "expect": { "refused": { "stage": "value", "inputs": [ "topic" ] } } }
Rule identifiers are permanent and are never renumbered. Each implementation publishes its own standing against these rules; this specification does not.spec 1.0 · MAN-11 · changed in spec 1.0