3.5 Node Object
Entries of a node's `children` array, and the `operator` of a leaf node.
duplicate-child-reference
| Beschreibung | Node `1` lists node `2` twice in its `children` array; node `2` is therefore referenced more than once and has `modular: true`. A validator reports a warning; the document stays valid. |
|---|---|
| Erwartung | accept |
| Ebene | semantic |
| RUML | 3-5-node-object.fixtures/accept-duplicate-child-reference.ruml |
| Abschnitt | §3.5.3 |
{ "$format": "RUML", "$specVersion": "1.0", "metadata": { "id": "2c8e4a6b-1d3f-4b5a-8e7c-6f9a0b1c2d3e", "version": "1.0.0", "created": "2024-01-01T00:00:00Z", "modified": "2024-01-01T00:00:00Z", "status": "inForce", "validFrom": "2024-01-01T00:00:00Z" }, "rulemap": { "nodes": { "1": { "id": "b6620b3c-4279-4a45-9115-c8bb2032d868", "operator": "OR", "label": "Antrag", "children": ["2", "2"] }, "2": { "id": "ec36948d-fbb2-4815-985a-bd5e9375d934", "label": "Unterschrift liegt vor", "modular": true } } }}operator--rejects-operator-on-leaf
| Beschreibung | Outside a draft, a leaf node has nothing to combine and MUST NOT have an `operator`; leaf `2` of this `inForce` file has `AND`. |
|---|---|
| Erwartung | reject |
| Ebene | schema |
| RUML | 3-5-node-object.fixtures/reject-operator-on-leaf.ruml |
| Abschnitt | §3.5.1§3.5.3 |
| Erwartete Regelverletzungen | NODE-07 |
| Stelle | /rulemap/nodes/2/operator |
{ "$format": "RUML", "$specVersion": "1.0", "metadata": { "id": "4764f53d-adb4-4388-b5d3-bc20e47ba522", "version": "1.0.0", "created": "2024-01-01T00:00:00Z", "modified": "2024-01-01T00:00:00Z", "status": "inForce", "validFrom": "2024-01-01T00:00:00Z" }, "rulemap": { "nodes": { "1": { "id": "64c38eaf-41e8-44a5-bf5d-91ff2ce812e7", "operator": "AND", "label": "Application", "children": ["2", "3"] }, "2": { "id": "96754bd4-3ef6-42f6-9c6a-d687631f294e", "operator": "AND", "label": "Applicant is of age" }, "3": { "id": "41e1fda4-0976-4837-a11a-ad9044cf786d", "label": "Signature is present" } } }}operator--accepts-operator-on-leaf-in-draft
| Beschreibung | In a draft, a leaf node may have any operator, which an evaluator ignores; leaf `2` has `AND`. |
|---|---|
| Erwartung | accept |
| Ebene | schema |
| RUML | 3-5-node-object.fixtures/accept-operator-on-leaf-in-draft.ruml |
| Abschnitt | §3.5.1§3.5.3 |
{ "$format": "RUML", "$specVersion": "1.0", "metadata": { "id": "a95684fe-c6c6-4d98-a2f8-eb547dfeeccc", "version": "1.0.0", "created": "2024-01-01T00:00:00Z", "modified": "2024-01-01T00:00:00Z", "status": "draft" }, "rulemap": { "nodes": { "1": { "id": "c675f0a8-363b-4aaf-bbc5-70ebb9009ead", "operator": "AND", "label": "Application", "children": ["2", "3"] }, "2": { "id": "5b0f05b0-a16a-4ac2-8653-53fda22c3059", "operator": "AND", "label": "Applicant is of age" }, "3": { "id": "5fa2bd50-88ca-45fd-896c-aafac146f04b", "label": "Signature is present" } } }}operator--rejects-undefined-operator-on-leaf
| Beschreibung | Outside a draft, `undefined` on a leaf node is rejected twice: a leaf has no operator, and `undefined` occurs only in drafts. |
|---|---|
| Erwartung | reject |
| Ebene | schema |
| RUML | 3-5-node-object.fixtures/reject-undefined-operator-on-leaf.ruml |
| Abschnitt | §3.5.3§3.6.5 |
| Erwartete Regelverletzungen | NODE-07OP-07 |
| Stelle | /rulemap/nodes/2/operator |
{ "$format": "RUML", "$specVersion": "1.0", "metadata": { "id": "02eda5bb-6829-43b5-85be-cddf0dcefef0", "version": "1.0.0", "created": "2024-01-01T00:00:00Z", "modified": "2024-01-01T00:00:00Z", "status": "inForce", "validFrom": "2024-01-01T00:00:00Z" }, "rulemap": { "nodes": { "1": { "id": "71de54e2-b1b8-457a-8f87-eadf07d8422b", "operator": "AND", "label": "Application", "children": ["2", "3"] }, "2": { "id": "af990dd9-4ee6-4a3b-8c15-ecae0bf4a69c", "operator": "undefined", "label": "Applicant is of age" }, "3": { "id": "a6eff83d-ba66-4d6d-80f5-54bc6d858ed5", "label": "Signature is present" } } }}