An instance override decides exposure; otherwise the port's stated default does
The rule
Normative: this is the rule
- A port's effective exposure on a node instance MUST be the
exposedvalue of the instance's override entry for that port, where the entry carries one. - Otherwise it MUST be the port's stated default exposure: the node type's
exposedByDefaultfor a port the node type declares, the definition'sexposedByDefaultfor a dynamic port (DYN-2). - Where neither states one, the port MUST be exposed (CFG-2).
- An override entry that carries no
exposedkey 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.
{ "id": "value", "exposed": false }{ "id": "error", "exposed": true }{ "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
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