Skip to content

An instance override decides exposure; otherwise the port's stated default does

The rule

Normative: this is the rule
  1. A port's effective exposure on a node instance MUST be the exposed value of the instance's override entry for that port, where the entry carries one.
  2. Otherwise it MUST be the port's stated default exposure: the node type's exposedByDefault for a port the node type declares, the definition's exposedByDefault for a dynamic port (DYN-2).
  3. Where neither states one, the port MUST be exposed (CFG-2).
  4. An override entry that carries no exposed key MUST read as no override.

What it means

Being named in the direction-scoped overrides is not, by itself, an override. An entry for a port can exist there for reasons that have nothing to do with exposure, so the only thing that flips a port away from its default is that entry carrying an exposed key. A port named but silent on exposed reads exactly as a port not named at all.

Example

The port value defaults exposed; error defaults hidden (EXPO-4). Three override shapes for value land on two different answers.

An override entry with an explicit exposed: falsehidden
{ "id": "value", "exposed": false }
An override entry with an explicit exposed: true, on a port that defaults hiddenexposed
{ "id": "error", "exposed": true }
An entry naming value, but with no exposed key at allexposed
{ "id": "value" }

The third entry names the same port as the first, and still resolves to the default: naming a port is not deciding about it.

Why

Recorded under OPEN-25, OPEN-33.

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