Skip to content

Reserved config-only parameters always carry a default

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:

A reserved parameter with no default anywhereopted in
{ "branches": { "type": "array", "title": "Branches" } }
The config-defaults entry for brancheswritten
[]

An ordinary parameter in the same position would have no entry at all.

Why

Recorded under OPEN-25, OPEN-26, OPEN-31, OPEN-37, OPEN-45.

Rule identifiers are permanent and are never renumbered. Each implementation publishes its own standing against these rules; this specification does not.spec 1.0 · SCH-5 · changed in spec 1.0