ancestor-descendant-relationship
An Element is linked to its own ancestor or descendant.
Severity: error · Since: v1.0.0
What check reports
Section titled “What check reports”For the failing example below, archidocs check prints:
shop/services.yaml:8:17 error ancestor-descendant-relationship Component "web-ui" is inside Service "web", so it can't have a Relationship to itA Component is part of its Service, and a Service part of its System; the nesting already says so. A Relationship between an Element and its own ancestor can’t be drawn at the ancestor’s level, where both ends are the same node.
Failing example
Section titled “Failing example”shop/services.yaml:
services: web: name: Web components: web-ui: name: Web UI relationships: - to: webPoint to at an Element outside the consumer’s own branch, such as a sibling.
shop/services.yaml:
services: web: name: Web components: web-ui: name: Web UI relationships: - to: web-api web-api: name: Web APIRelated rules
Section titled “Related rules”self-relationship: An Element has a Relationship to itself.ancestor-descendant-participants: An Element and its own ancestor are both participants of a Dynamic View.
Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.