--- id: SCH-24 family: GR-SCHEMA level: core profiles: [storage-api, editor-client] posture: normative-target added: "1.0" changed: "1.0" source: https://flowdrop.io/spec/rules/gr-schema/sch-24 specification: FlowDrop Workflow Specification 1.0 licence: CC BY 4.0 --- # SCH-24 — A node type that fails to build does not fail the request *GR-SCHEMA (Part I) · level: core · profiles: storage-api, editor-client · added in 1.0* One unbuildable node type costs the reader that node's metadata, not the whole response. ## The rule > **Normative.** This is the rule. > > 1. Where a node type cannot be built from its own declaration or stored data, the failure MUST be contained. > > 2. A node type whose input or output schema (SCH-1) is not a valid JSON Schema 2020-12 schema cannot be built: a schema that fails the 2020-12 meta-schema, such as one whose `type` names no JSON Schema type, or that declares a `pattern` which is not a valid regular expression, is such a case. > > 3. The request being served MUST still succeed. > > 4. The node MUST be returned unenriched (SCH-25). > > 5. The failure is recorded where an operator can find it. > > 6. This governs failures attributable to the node type. > > 7. Behaviour when an implementation's own extension code violates the contract it was written against is outside this specification, which describes conforming implementations and not malfunctioning ones. ## What it means A node type that cannot be built does not take the whole response down with it: the caller still gets an answer, and the one node whose type failed comes back exactly as it was stored, carrying none of the metadata a successful build would have added — not even an empty one. This holds only for failures the node type's own declaration or stored data is responsible for. A failure inside an implementation's own extension code that breaks the contract it was written against is a different case the specification does not describe, because describing conforming behaviour is not the same as guaranteeing something useful once the implementation itself is broken. ## Example ```json title="A stored node whose node type cannot be built" verdict="stored" { "id": "n1", "type": "legacyType", "position": { "x": 1, "y": 2 }, "data": { "metadata": { "node_type_id": "broken" }, "config": { "instanceTitle": "Kept" } } } ``` ```json title="The metadata field the response carries for that node" verdict="unchanged" { "node_type_id": "broken" } ``` Nothing else about the request fails: the node keeps the metadata it already had, and the failure is recorded separately for an operator to find. ## Why Recorded under [OPEN-25](https://flowdrop.io/spec/rulings/open-25), [OPEN-28](https://flowdrop.io/spec/rulings/open-28). ## Related rules - Names: SCH-25 - Referenced by: R6.d, R6.h --- Rule identifiers are permanent and are never renumbered. This specification carries no implementation status: each implementation publishes its own standing against these rules. Licensed CC BY 4.0.