Composition / foldkit-composition
What validation finds
| Code | Meaning |
|---|---|
composition:missing-node | a root or Region names an id with no node |
composition:orphan | a node that no root or Region reaches |
composition:second-parent | a node placed twice |
composition:cycle | a node that contains itself |
composition:unknown-block | a Block name the Catalog does not have; the node is kept and what it holds is still checked |
composition:invalid-props | props the Block's schema refuses, including a key it does not name |
composition:unknown-region | a Region the Block does not have |
composition:region-cardinality | too few or too many children for the Region |
composition:region-rejects | a child whose Content the Region does not accept |
composition:root-rejects | a root whose Content the Catalog's roots do not accept |
composition:invalid-appearance | an appearance that is not a record, an axis the Block lacks, or a value off the axis's list |
composition:unknown-token | a token axis naming a token the theme does not have |
composition:invalid-condition | a when that is not a list of conditions |
composition:unknown-context | a condition over a key the Catalog's context does not declare, or a value that key cannot have |
composition:invalid-action | an event the Block does not have, a reference that is not { action, input }, or input the action's Schema refuses |
composition:unknown-action | an action the Catalog does not offer |
Props are decoded strictly, so a prop an old version left behind is found rather than silently kept.