Skip to content

A declared input delivers to the port its entry binds, or nowhere

The manifest is a mapping, and this is the mapping it performs.

The rule

Normative: this is the rule
  1. A value supplied under a declared input name MUST be delivered to the workflow's initial data under the node identifier and port name that input's manifest entry binds.
  2. A value supplied for an unbound input MUST be checked as any declared input's value is (MAN-15, MAN-16).
  3. It MUST then be delivered to no node, and its absence of a binding MUST NOT be reported as a missing node.

Why

Recorded under OPEN-25, OPEN-27.

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.

  • An empty value supplied for a bound input is delivered as sent resolve-launch-inputs
    {
      "given": {
        "inputs": [
          {
            "name": "topic",
            "node_id": "n1",
            "port": "text"
          }
        ],
        "supplied": {
          "topic": ""
        }
      },
      "expect": {
        "initialData": {
          "n1": {
            "text": ""
          }
        }
      }
    }

    fixtures/presence/in-bound-empty-delivered.json

  • A value for an unbound input is accepted and delivered nowhere resolve-launch-inputs
    {
      "given": {
        "inputs": [
          {
            "name": "topic",
            "schema": {
              "type": "string",
              "x-data-type": "string"
            }
          }
        ],
        "supplied": {
          "topic": "x"
        }
      },
      "expect": {
        "initialData": {}
      }
    }

    fixtures/presence/in-unbound-delivered-nowhere.json

  • An unbound required input is still required resolve-launch-inputs
    {
      "given": {
        "inputs": [
          {
            "name": "topic",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "supplied": {}
      },
      "expect": {
        "refused": {
          "stage": "missing",
          "inputs": [
            "topic"
          ]
        }
      }
    }

    fixtures/presence/in-unbound-required-missing.json

  • A value for an unbound input is checked against its schema resolve-launch-inputs
    {
      "given": {
        "inputs": [
          {
            "name": "topic",
            "schema": {
              "type": "string"
            }
          }
        ],
        "supplied": {
          "topic": 5
        }
      },
      "expect": {
        "refused": {
          "stage": "value",
          "inputs": [
            "topic"
          ]
        }
      }
    }

    fixtures/presence/in-unbound-value-checked.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 · MAN-11 · changed in spec 1.0