--- id: SCH-5 family: GR-SCHEMA level: core profiles: [storage-api, editor-client] posture: normative-target added: "1.0" changed: "1.0" source: https://flowdrop.io/spec/rules/gr-schema/sch-5 specification: FlowDrop Workflow Specification 1.0 licence: CC BY 4.0 --- # SCH-5 — Reserved config-only parameters always carry a default *GR-SCHEMA (Part I) · level: core · profiles: storage-api, editor-client · added in 1.0* ## The rule > **Normative.** This is the rule. > > 1. `dynamicParameters`, `dynamicOutputs` and `branches` are reserved config-only parameters, and MUST NOT be input ports: a node type that marks one `connectable` cannot be built (SCH-24). > > 2. Where a node type opts one in by marking it `configurable`, it MUST enter the config schema and MUST get a config-defaults entry: the first of the node type's default and the schema's default that is an array, else an empty array. > > 3. Such an entry MUST NOT be omitted and MUST NOT be `null`, unlike an ordinary configurable parameter, whose entry is omitted when it has no effective default (CFG-18). ## What it means `dynamicParameters`, `dynamicOutputs` and `branches` behave like any other configurable parameter for one purpose only: entering the config schema when the node type opts them in. Their config-defaults entry does not follow the ordinary rule. An ordinary configurable parameter with no default anywhere is left out of config defaults entirely; one of these three is never left out and never recorded as null — with nothing to fall back on, the entry is still written, as an empty array. ## Example A reserved parameter with no default declared on the declared schema or the node type: ```json title="A reserved parameter with no default anywhere" verdict="opted in" { "branches": { "type": "array", "title": "Branches" } } ``` ```json title="The config-defaults entry for branches" verdict="written" [] ``` An ordinary parameter in the same position would have no entry at all. ## 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), [OPEN-37](https://flowdrop.io/spec/rulings/open-37), [OPEN-45](https://flowdrop.io/spec/rulings/open-45). ## Related rules - Names: SCH-4 - Referenced by: SCH-4 --- 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.