Skip to content

Dynamic ports are opt-in, and a node that does not opt in has none

Dynamic ports let an author add parameters and outputs to one node instance beyond what its processor declares. Nothing gets them by accident: a node type has to ask for them, and the definitions start empty.

The rule

Normative: this is the rule
  1. A node type opts a node in to dynamic ports by declaring two reserved parameters: dynamicParameters, holding the node's dynamic parameter definitions, and dynamicOutputs, holding its dynamic output port definitions.
  2. Each of the two MUST be an array.
  3. The default of each MUST be the empty array.
  4. A node that has not opted in MUST NOT have dynamic ports.
  5. A dynamic parameter that is connectable is a dynamic input; one that is configurable is a dynamic setting; it can be both.

What it means

Opting in adds two keys to a node type's declared parameters, each holding an array of port definitions with an empty default. A node type that never opts in never carries those keys, so a node built from it cannot have a dynamic port at all — there is nothing to add one to.

What a stored definition looks like when it is not usable matters as much as what it looks like when correctly authored: a value that is not an array at all reads back as an empty array rather than surfacing the malformed content or refusing the node outright.

Example

A node's stored definitions are not lists — one is a string, one a number:

Stored definitions that are not arraysunusable
{ "dynamicParameters": "not-an-array", "dynamicOutputs": 42 }
What reading them back returnsempty
[[], []]

Why

Recorded under OPEN-25, OPEN-31.

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