Skip to content

An explicit null at a higher priority wins

Sending null is a decision, not a silence. A node that emits null on a wire has said something, and what it said beats whatever the author saved.

The rule

Normative: this is the rule
  1. At every priority, a value MUST count as supplied when a key of the parameter's name is present, whatever that key's value.
  2. An explicit null therefore MUST win over any lower priority: a null delivered on a wire beats the author's saved config, and a null in the saved config beats the schema default.
  3. This MUST hold identically however a workflow is executed.

What it means

An assumption a careless reader might carry over from ordinary code is that null means "nothing here" and so falls through to whatever comes next. This rule refuses that: presence is what counts, not the value behind it. A wire, the saved config, and the schema default are each checked the same way — does a key of the parameter's name exist at all — and an explicit null at a higher priority satisfies that check exactly as any other value would. A null delivered on a wire therefore beats the author's saved config outright, and a null saved in config beats the schema default, in both cases exactly as if a non-null value had arrived.

Example

A node's output for the wired port is explicitly null:

A node's output, explicitly nullproduced
{"out": null}
What the wired input receivesdelivered
{"data": null}

The key survives as a present, null entry rather than disappearing — which is what lets priority 1 claim it instead of falling through to the saved config.

Why

Recorded under OPEN-25.

Fixtures

Test cases whose outcome this rule decides. A case compares absent, null and empty members exactly; the fixtures README defines each operation. Where a case and the rule disagree, the rule is right.

  • A null in the saved config beats the default resolve-parameters
    {
      "given": {
        "parameters": {
          "x": {
            "schema": {
              "type": [
                "string",
                "null"
              ],
              "default": "schema"
            },
            "default": "node type",
            "connectable": true,
            "exposed": true,
            "configurable": true
          }
        },
        "config": {
          "x": null
        }
      },
      "expect": {
        "resolved": {
          "x": null
        }
      }
    }

    fixtures/presence/cfg-config-null-beats-default.json

  • A null is supplied, so a skip parameter does not skip resolve-parameters
    {
      "given": {
        "parameters": {
          "x": {
            "schema": {
              "type": [
                "string",
                "null"
              ]
            },
            "required": true,
            "when_missing": "skip",
            "connectable": true,
            "exposed": true,
            "configurable": true
          }
        },
        "inputs": {
          "x": null
        }
      },
      "expect": {
        "resolved": {
          "x": null
        }
      }
    }

    fixtures/presence/cfg-skip-null-is-supplied.json

  • A null on the wire beats the author's saved value resolve-parameters
    {
      "given": {
        "parameters": {
          "x": {
            "schema": {
              "type": [
                "string",
                "null"
              ]
            },
            "connectable": true,
            "exposed": true,
            "configurable": true
          }
        },
        "config": {
          "x": "saved"
        },
        "inputs": {
          "x": null
        }
      },
      "expect": {
        "resolved": {
          "x": null
        }
      }
    }

    fixtures/presence/cfg-wire-null-beats-config.json

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