A required parameter that nothing supplies fails the node
The rule
Normative: this is the rule
- A parameter is missing where it is required and no priority supplied it (CFG-4 to CFG-6), so that it is absent from the resolved parameter set (CFG-14).
- Where any parameter is missing, the node execution MUST fail with a missing-parameter error naming every missing parameter, in no defined order, unless CFG-21 skips the node.
- A
nullsupplied at any priority is present, and MUST satisfy the requirement, asrequiredis satisfied in JSON Schema; whether thatnullis acceptable is decided by the parameter's schema (CFG-10). - The check MUST run after the whole chain has been walked for every parameter, and before any resolved value is validated.
Why
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.
Every missing required parameter is named, in no order resolve-parameters
The outcome must not depend on the order the parameters are declared in (OPEN-23).
{ "given": { "parameters": { "z": { "schema": { "type": "string" }, "connectable": true, "exposed": true, "configurable": true, "required": true }, "a": { "schema": { "type": "string" }, "connectable": true, "exposed": true, "configurable": true, "required": true } } }, "expect": { "failed": { "error": "missing-parameter", "parameters": [ "a", "z" ] } } }A required parameter nothing supplies fails the node resolve-parameters
{ "given": { "parameters": { "x": { "schema": { "type": "string" }, "required": true, "connectable": true, "exposed": true, "configurable": true } } }, "expect": { "failed": { "error": "missing-parameter", "parameters": [ "x" ] } } }A null meets required, and passes where the type admits null resolve-parameters
{ "given": { "parameters": { "x": { "schema": { "type": [ "string", "null" ] }, "required": true, "connectable": true, "exposed": true, "configurable": true } }, "config": { "x": null } }, "expect": { "resolved": { "x": null } } }A null meets required, then fails a type that does not admit it resolve-parameters
{ "given": { "parameters": { "x": { "schema": { "type": "string" }, "required": true, "connectable": true, "exposed": true, "configurable": true } }, "config": { "x": null } }, "expect": { "failed": { "error": "validation", "constraints": { "x": [ "type" ] } } } }A missing skip parameter skips the node even when another missing parameter would fail it resolve-parameters
A node that is not executed does not fail; declaration order plays no part.
{ "given": { "parameters": { "b": { "schema": { "type": "string" }, "connectable": true, "exposed": true, "configurable": true, "required": true }, "a": { "schema": { "type": "string" }, "connectable": true, "exposed": true, "configurable": true, "required": true, "when_missing": "skip" } } }, "expect": { "skipped": true } }
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-9 · changed in spec 1.0