Skip to content

A property's type is a JSON Schema type, not a port lane

The two vocabularies overlap on four words, so a lane name written into type looks correct. Treating it as a broken schema makes the mistake show at once, not later as a port of the wrong lane.

The rule

Normative: this is the rule
  1. A property's type MUST be one of JSON Schema's seven type words, or an array whose every member is one.
  2. A port lane that is not one of those words, such as json or mixed, MUST NOT appear in type, on the input side or the output side.
  3. A schema that names one there fails the 2020-12 meta-schema, so its node type cannot be built and SCH-24 applies.

Why

Recorded under OPEN-25, OPEN-28.

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