Lane derivation is total, and an undeclared port is the sink
"What does an undeclared port mean?" once had seven disagreeing answers. It has one: the sink.
The rule
- Every one of JSON Schema's seven type words MUST derive a lane.
- Both
nulland an absenttypeMUST resolve to the sink lanemixed. - Derivation MUST NOT fall back to
string. - Every reader of a port's lane MUST give the same answer: the derivation itself, the served default lane, the projection of a workflow's interface, and an editor's own default alike.
- Because an undeclared port is the sink rather than a string, it MUST accept any JSON value, an array or null included.
What it means
An undeclared or unrecognised property does not default to string. It lands
on the sink lane, mixed, and a caller can then supply any JSON value there —
an array or a null included. This matters because string is the more
familiar default in most typing systems, and a reader carrying that
assumption over would expect an unconstrained port to still refuse a
structured value.
null gets the same answer as an unrecognised word, even though it is one of
JSON Schema's own seven type words: a property that only ever holds null
constrains nothing worth colouring, so it resolves to the sink rather than to
a lane of its own.
Example
Two declared type words handed to the derivation — one nothing recognises,
one JSON Schema's own null:
"no_such_type""null"Either way the lane derived is mixed, never string.
Why
Recorded under OPEN-25.