--- id: DYN-4 family: GR-DYN level: extended profiles: [runtime] posture: normative-target added: "1.0" changed: "1.0" source: https://flowdrop.io/spec/rules/gr-dyn/dyn-4 specification: FlowDrop Workflow Specification 1.0 licence: CC BY 4.0 --- # DYN-4 — An unconnected dynamic input falls back like any parameter *GR-DYN (Part I) · level: extended · profiles: runtime · added in 1.0* ## The rule > **Normative.** This is the rule. > > 1. A dynamic input (DYN-1) with nothing wired into it MUST fall back as any parameter does (CFG-6): it MUST take the `default` its schema declares, where it declares one, and otherwise MUST be absent from the node's resolved inputs. > > 2. A `null` delivered on its wire MUST be present with the value `null`. > > 3. Nothing arriving on the wire is not the same as a `null` arriving. ## What it means A dynamic input falls back like any parameter: where its schema declares a `default`, an unwired input takes it. Without one, as below, it is absent. A dynamic input with nothing wired to it is left out of a node's resolved inputs. A processor reading its inputs tells "nothing arrived" from "a `null` arrived" by checking for the key: the key is there only when something was delivered, and its value is `null` only when a `null` was. ## Example A node declares two dynamic inputs, and only one has anything wired to it: ```json title="A dynamic input with nothing wired to it" { "dynamicParameters": [{ "name": "connected", "label": "C", "dataType": "string", "connectable": true, "exposedByDefault": true }, { "name": "unconnected", "label": "U", "dataType": "string", "connectable": true, "exposedByDefault": true }], "connected": "value" } ``` ```json title="What resolving the node's inputs returns" verdict="absent" { "connected": "value" } ``` ## Why Recorded under [OPEN-25](https://flowdrop.io/spec/rulings/open-25), [OPEN-26](https://flowdrop.io/spec/rulings/open-26), [OPEN-31](https://flowdrop.io/spec/rulings/open-31). ## Fixtures Test cases whose outcome this rule decides (fixtures/README.md defines each operation): - An unwired dynamic input is absent; a null on its wire is present (`resolve-parameters`): fixtures/presence/dyn-unwired-absent-null-present.json --- Rule identifiers are permanent and are never renumbered. This specification carries no implementation status: each implementation publishes its own standing against these rules. Licensed CC BY 4.0.