Skip to content

Dynamic port names are constrained and unique across the node

The rule

Normative: this is the rule
  1. A dynamic port name MUST begin with an ASCII letter and continue with ASCII letters, digits or underscores.
  2. A dynamic port name MUST NOT be a reserved name.
  3. A dynamic port name MUST be unique across the union of the node's dynamic parameter and dynamic output names, so a parameter and an output on the same node cannot share a name.
  4. A definition whose schema is not a valid JSON Schema 2020-12 schema, by the same test that makes a node type unbuildable (SCH-24), MUST also be refused: here the schema is the workflow's, so the error is the author's, not the node type's.
  5. A gate flag or exposedByDefault on a definition MUST be a JSON boolean where present, as on a node type (CFG-1).
  6. A definition that breaks any of these MUST be refused when the workflow is saved.

What it means

The pattern is ASCII-only: a name begins with a letter from a-z or A-Z and continues with ASCII letters, digits or underscores. A name written with a non-ASCII letter fails even though it reads as an ordinary word to a person, and a single ASCII letter on its own is enough to pass.

Uniqueness is checked across the union of a node's dynamic parameters and dynamic outputs, not within each side separately. An input and an output on the same node cannot share a name, even though one is never confused for the other at the point where a value is delivered.

Example

A name that reads as a word but carries a non-ASCII letterrefused
"pörtchen"
Input definitions that validate, one of them a single letteraccepted
[{ "name": "in_1" }, { "name": "Alpha2" }, { "name": "a" }]

The same definition declared on both sides of one node, not just repeated within one side, is refused too:

A definition declared as both an input and an outputrefused
[{ "name": "shared" }]

Why

Recorded under OPEN-25, OPEN-31, OPEN-43.

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-3 · changed in spec 1.0