Skip to content

A schema that will not load never rewrites stored parameters

A momentary failure to load a node type's declared schema once looked exactly like "this node type declares nothing", and a save then wrote that emptiness back as permanent configuration loss.

The rule

Normative: this is the rule
  1. A declared parameter schema that fails to load, that is not a valid schema (SCH-24), or that loads without a usable properties map, MUST NOT be read as a node type declaring nothing; a node type with no parameters declares an empty map, and an absent map loses stored rows exactly as a failure does.
  2. Where a node type has stored parameter configuration that such a schema would drop, the save MUST be refused.
  3. Nothing MUST be rewritten in that case.
  4. Where nothing is stored there is nothing to lose, and the rest of the editing surface stays reachable.
  5. A write path that is reachable without that refusal MUST write the stored configuration back verbatim rather than the accidentally empty computed one.
  6. Such a write path MUST leave reserved-port exposure untouched.
  7. Only the render path MAY treat an unloadable schema as no properties, where that correctly means render no rows.

What it means

A node type's declared parameter schema failing to load and a node type genuinely declaring no parameters produce the same shape — an empty or missing map — so the two are not interchangeable. Only where stored configuration would actually be lost does the save refuse; the two failure shapes, a schema that raises an error and one that loads but without a usable map, are treated identically, both refusing the save rather than writing the accidentally empty result back.

Example

A node type's stored parameters, edited again after its schema starts raising an error on load:

The node type's stored parameterspreserved
{
  "loop_back": { "configurable": false, "connectable": true, "required": false, "exposed_by_default": true },
  "query": { "configurable": true, "connectable": true, "required": true, "exposed_by_default": true, "default": "cats" }
}

The same stored parameters survive just as untouched when the schema loads without raising, but comes back with no usable properties map:

The same stored parameters when the schema loads without a usable properties mappreserved
{ "loop_back": { "configurable": false, "connectable": true, "required": false, "exposed_by_default": true } }

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-33 · changed in spec 1.0