--- id: CFG-14 family: GR-CFG level: core profiles: [storage-api] posture: normative-target added: "1.0" changed: "1.0" source: https://flowdrop.io/spec/rules/gr-cfg/cfg-14 specification: FlowDrop Workflow Specification 1.0 licence: CC BY 4.0 --- # CFG-14 — A parameter is present exactly when a priority supplied it *GR-CFG (Part I) · level: core · profiles: storage-api · added in 1.0* ## The rule > **Normative.** This is the rule. > > 1. A declared parameter MUST be present in the resolved parameter set when a priority supplied it (CFG-4 to CFG-6), with the value that priority supplied, a `null` included. > > 2. A parameter that no priority supplied MUST be absent from the set. > > 3. It MUST NOT be present with the value `null`, so a `null` in the set always means that a priority chose it. ## Why Recorded under [OPEN-25](https://flowdrop.io/spec/rulings/open-25), [OPEN-26](https://flowdrop.io/spec/rulings/open-26). ## Fixtures Test cases whose outcome this rule decides (fixtures/README.md defines each operation): - Empty values in the saved config are values, not gaps (`resolve-parameters`): fixtures/presence/cfg-config-empty-values-are-values.json - A null in the saved config beats the default (`resolve-parameters`): fixtures/presence/cfg-config-null-beats-default.json - The node type's recorded default wins over the schema default (`resolve-parameters`): fixtures/presence/cfg-node-type-default.json - A recorded null default is a default, and wins over the schema's (`resolve-parameters`): fixtures/presence/cfg-node-type-null-default.json - A parameter nothing supplies is absent, not null (`resolve-parameters`): fixtures/presence/cfg-nothing-supplies-absent.json - A required parameter nothing supplies fails the node (`resolve-parameters`): fixtures/presence/cfg-required-absent-fails.json - With no recorded default, the schema default applies (`resolve-parameters`): fixtures/presence/cfg-schema-default.json - A null schema default is a default (`resolve-parameters`): fixtures/presence/cfg-schema-null-default.json - A parameter absent from the wire falls through to the saved value (`resolve-parameters`): fixtures/presence/cfg-wire-absent-falls-to-config.json - An empty string on the wire is a value, and beats the saved one (`resolve-parameters`): fixtures/presence/cfg-wire-empty-beats-config.json - A null on the wire beats the author's saved value (`resolve-parameters`): fixtures/presence/cfg-wire-null-beats-config.json - A value on the wire beats the author's saved value (`resolve-parameters`): fixtures/presence/cfg-wire-value-beats-config.json ## Related rules - Names: CFG-13 - Referenced by: CFG-13, CFG-15 --- Rule identifiers are permanent and are never renumbered. This specification carries no implementation status: each implementation publishes its own standing against these rules. Licensed CC BY 4.0.